1. 程式人生 > >sql where in字串問題

sql where in字串問題

在pycharm中執行

select * from value in(1,2);

會提醒:

No statement found under the caret. 
Execute all statements in the file or just the ones after the cursor?

表示in後面的條件被當做語句,執行出錯

解決:

select * from find_in_set(value, '1,2');