update counter set cou_type = 'c' where cou_id (select cou_id from counter where cou_type = 'p' limit 0,3000)
ฟ้องว่า #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 'select cou_id from counter where cou_type = 'p' limit 0,3000)' at line 1
ผมลอง
Code (PHP)
update counter set cou_type = 'c' where cou_id = (select cou_id from counter where cou_type = 'p' limit 0,3000)
update counter set cou_type = 'c' where cou_id in (select cou_id from counter where cou_type = 'p' limit 0,3000)