亚洲精品高清国产一久久_日韩v亚洲v欧美v精品综合 日韩网红少妇无码视频香港_国产在线观看免费观看_粉

0712-2888027 189-8648-0214
微信公眾號

孝感風信網(wǎng)絡科技有限公司微信公眾號

當前位置:主頁 > 技術(shù)支持 > MySQL > SQL刪除b表中與a表不同的記錄

SQL刪除b表中與a表不同的記錄

時間:2015-11-09來源:風信官網(wǎng) 點擊: 724次
  1. 刪除b表中與a表不同的記錄
  2. delete from b where not exists(select * from a where a.id=b.id and a.name=b.name)
  3. delete from b where b.id not in (select a.id from a) or b.name not in (select a.name from a)

delete from v9_photo_data where not exists(select * from v9_photo where v9_photo.id=v9_photo_data.id)
delete from v9_material_data where not exists(select * from v9_material where v9_material.id=v9_material_data.id)

熱門關鍵詞: SQL 刪除b表 a表 不同記錄
欄目列表
推薦內(nèi)容
熱點內(nèi)容
展開
娄烦县| 汪清县| 和硕县| 宜兴市| 富民县| 南岸区| 上饶市| 晋宁县| 株洲县| 安阳县| 海原县| 英吉沙县| 夹江县| 乌海市| 邹城市| 富裕县| 马龙县| 秦皇岛市| 临高县| 绥德县| 大英县| 广河县| 阳城县| 青河县| 崇明县| 囊谦县| 湾仔区| 潞西市| 耒阳市| 柏乡县| 河源市| 额济纳旗| 新巴尔虎左旗| 防城港市| 北安市| 灵宝市| 屏东县| 政和县| 洪江市| 清新县| 岐山县|