Select * from f_account
where ACCT_ID in (3,4,2)
ORDER BY charindex(','+convert(varchar,ACCT_ID)+',','3,4,2')
这是在网上找的,不知道 是不是写的不对,报错
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'varchar,ACCT_ID)+',','3,4,2')' at line 3