国产一区二区在线免费观看,亚洲自国产拍揄拍,439 亚洲精品高清国产一久久_国产精品亚洲精品日韩动图_

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)容
展開
临安市| 通江县| 桃源县| 菏泽市| 云林县| 什邡市| 吴忠市| 阿拉尔市| 云梦县| 汝城县| 蒲城县| 赣州市| 昭觉县| 湘潭市| 泰州市| 贵德县| 上高县| 南涧| 芜湖县| 莒南县| 迁安市| 惠东县| 武乡县| 同德县| 夏邑县| 顺义区| 泊头市| 盐津县| 新乐市| 徐水县| 宁城县| 镶黄旗| 新民市| 舒城县| 舒城县| 伊通| 伊通| 焉耆| 宝应县| 嘉鱼县| 胶南市|