国产精品成人久久久久,国产小视频在线高清播放,a黄 国产理论自拍_精品国产91久久久久久久a_99热综合_国语自产拍天天在线

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)容
展開
黔西县| 噶尔县| 繁昌县| 尉氏县| 阿拉善盟| 舒城县| 新巴尔虎右旗| 门源| 连城县| 嘉善县| 年辖:市辖区| 扎赉特旗| 井研县| 增城市| 永济市| 岱山县| 双流县| 玛沁县| 富阳市| 古田县| 巫山县| 沁水县| 鄂托克旗| 瑞安市| 汪清县| 阜康市| 克山县| 乌拉特后旗| 诏安县| 阜城县| 庆阳市| 楚雄市| 东海县| 绥中县| 高青县| 太保市| 寻乌县| 大关县| 沧州市| 射阳县| 阿拉善左旗|