Access交流中心

北京 | 上海 | 天津 | 重庆 | 广州 | 深圳 | 珠海 | 汕头 | 佛山 | 中山 | 东莞 | 南京 | 苏州 | 无锡 | 常州 | 南通 | 扬州 | 徐州 | 杭州 | 温州 | 宁波 | 台州 | 福州 | 厦门 | 泉州 | 龙岩 | 合肥 | 芜湖 | 成都 | 遂宁 | 长沙 | 株洲 | 湘潭 | 武汉 | 南昌 | 济南 | 青岛 | 烟台 | 潍坊 | 淄博 | 济宁 | 太原 | 郑州 | 石家庄 | 保定 | 唐山 | 西安 | 大连 | 沈阳 | 长春 | 昆明 | 兰州 | 哈尔滨 | 佳木斯 | 南宁 | 桂林 | 海口 | 贵阳 | 西宁 | 乌鲁木齐 | 包头 |

求助//t1比t2表多的找出1 张华,5 刘德华,处理特殊字符判断

mirro  发表于:2013-09-16 17:20:09  
复制

select 1 as false,id,name from t1 where not exists (select 2 from t2 where t1.id=t2.id and (t1.name=substring(t2.name,1,instr(t2.name,'(')-1 where instr(gm,'(')>0))

select 1 as false,id,name from t1 where not exists (select 2 from t2 where t1.id=t2.id and t1.name=t2.name) //之前对的

 

 

Top
飘摇王 发表于:2013-09-17 08:24:34

比较两个表记录的不同

http://www.accessoft.com/article-show.asp?id=8203

 

查找2个表不同记录简单方法

http://www.accessoft.com/article-show.asp?id=8384

 

【Access源码示例】--把表1中与表2不重复的数据追加到表2

http://www.accessoft.com/article-show.asp?id=7278

 



总记录:1篇  页次:1/1 9 1 :