摘要: 今天碰到一个sql问题,就是在delete中加了别名,导致报错了:"[Err] 1064 - You have an error in your SQL syntax; ..." 简单说下过程,本来是一个简单的delete语句: delete from table1 where status=2; 阅读全文
posted @ 2022-01-17 15:09 LZ太热 阅读(604) 评论(0) 推荐(0) 编辑
摘要: mysql出现You can’t specify target table for update in FROM clause 这个错误的意思是不能在同一个sql语句中,先select同一个表的某些值,然后再update这个表。(不是同一个表可以) 然后执行将每个用户第一条消息的内容更新为Hello 阅读全文
posted @ 2022-01-17 13:20 LZ太热 阅读(691) 评论(0) 推荐(0) 编辑