mysql與oracle的確很多區(qū)別之處: 多表左鏈接鏈接: Select * FROM t1 LEFT JOIN (t2, t3, t4) ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c) delete別名問題: 如: delete from student a where a.id in (1,2);(執(zhí)行失敗) select a.* from student a where
mysql與oracle的確很多區(qū)別之處:
多表左鏈接鏈接:
Select * FROM t1 LEFT JOIN (t2, t3, t4) ON (t2.a=t1.a AND t3.b=t1.b AND t4.c=t1.c)
delete別名問題:
如:
delete from student a where a.id in (1,2);(執(zhí)行失敗)
select a.* from student a where a.id in (1,2);(執(zhí)行成功)
怎么辦呢?見下面辦法
delete a from student a where a.id in (1,2);
在 delete 后加上 表的別名a 即可刪除成功!
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com