đoạn query vầy mà báo lổi....
Sory với các bác mysql nha... mình quen với sqlserver nên mới qua còn lạ với mysql
delete from 'tablepoint'
where uid=1 and idpoint < ( select max(idpoint) as idpoint from 'tablepoint' where uid=1);
báo lỗi: #1093 - You can't specify target table 'tablepoint' for update in FROM clause
Bên sqlserver còn lâu mí bị.
sửa lại thành:
delete from 'tablepoint'
where uid=1 and idpoint < 1000;
thì chạy ok... hic....
mình cũng bótay.com với nó lun... mọi người giúp mình nhé
Bookmarks