mssql中:
delete from lihan where id=1 与 delete lihan where id=1是相等的
mysql中:
只能用delete from lihan where id =1
否则:
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 'where id=1 at line 1
本文对比了MSSQL与MySQL中DELETE语句的使用差异,在MSSQL中可以省略FROM关键字,而在MySQL中必须包含FROM关键字,否则会报错。此差异对于跨数据库迁移或熟悉一种数据库系统的开发者来说尤为重要。
1917

被折叠的 条评论
为什么被折叠?



