mysql中update与delete 注意事项

mysql中You can't specify target table <tbl> for update in FROM clause错误的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中)。 例以下面这个sql:mysql delete from tbl where id in  (         select max(id) from tbl a wher
相关文章
相关标签/搜索