我得到這個代碼:如何搜索MySQL中的確切字符串值?
select * from locality WHERE name ="ISTASYON"
這與MySQL完美。問題來了,當我嘗試執行,但結果不正確
結果代碼:
28BAF9346A41E4E4E0501AAC4524363B 0 iSTASYON
402881a4523b52d201523b6c2afb4166 0 İSTASYON
402881a4523b52d201523b6c38b7417c 0 İSTASYON
402881a4523b52d201523baa9faf0092 0 İSTASYON
402881a4523b52d201523baab059009f 0 İSTASYON
402881a4523b52d201523baad01a00b7 0 İSTASYON
58441bc4c054447ebe1cddbfeef958b5 0 ISTASYON
fa7fb88d1d4c41feb497b08f42066c82 1 2016-04-19 09:53:41.000000 İSTASYON
我的問題是結果包含ISTASYON,İSTASYON,ıSTASYON,iSTASYON但我只想ISTASYON
如何解決這個問題?
您是否使用不區分大小寫的字符集? –
[我怎樣才能在MySQL上對SQL區分大小寫的字符串進行比較?](http://stackoverflow.com/questions/5629111/how-can-i-make-sql-case-sensitive-string-comparison-on -mysql) – Shadow
在重複問題中獲得最多讚譽的第二個答案是最簡單的解決方案 – Shadow