2017-10-20 87 views
0

試圖對MySQL的下面的查詢執行此:MySQL的:截斷不正確DOUBLE值

update comm_store set flag = 'D' and stores in('EU','AUS','US', 
'CHN') where emp_id in(select emp_id from comm_store_sec) 

但得到:

的MySQL:截斷不正確DOUBLE值 'd'

標誌有數據類型爲varchar emp_id有BIGINT

不打賭如何解決這個問題?

回答

0

什麼是標誌列數據類型?

然後,改變這樣的SQL

update comm_store set flag = 'D' , stores in('EU','AUS','US', 'CHN') where emp_id in(select emp_id from comm_store_sec) 

只是改變了 '和' 爲 '' 我做了MariaDB的測試。成功

+0

標誌具有數據類型varchar和emp_id具有BIGINT – user4569636

+0

@ user4569636本文是類似的https://stackoverflow.com/a/6944326/6497884 – jonggu

相關問題