您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MYSQL delete语句不支持别名的问题_MySQL

2026/2/5 3:28:15发布10次查看
bitscn.com
有一个表的数据比较大,然后需要进行关联删除,删除的时候发现如下sql报错: delete from test.test1 a where exists (select 1 from test.test2 b where a.recordid=b.smsinfoid and b.receivetime  报错如下: error code: 1064you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near 'a where exists (select 1 from test.test2 b where a.recordid=b.smsinf' at line 1    开始以为是exists的问题,于是更改成in再测试,也报同样错: delete from test.test1 a where a.recordid in (select b.smsinfoid from test.test2 b where b.receivetime
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product