解決方法:
將原來的程序:
zos.putNextEntry( entry );
workbook.write( zos );
zos.closeEntry();
zos.putNextEntry( entry );
workbook.write( new NonCloseableOutputStream( zos ) );
zos.closeEntry();
其中 NonCloseableOutputStream 定義如下:
public NonCloseableOutputStream(OutputStream out) {
super(out);
}
@Override public void close() throws IOException {
flush();
}
}
2. 使用binary使得mysql區分大小寫
select * from table1 where binary field1 = 'abc';
posted @ 2017-08-09 19:52 云自無心水自閑 閱讀(425) | 評論 (0) | 編輯 收藏