当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 请问各位大虾如何才能改变vfp中的编译后的.exe文件的图标。(50分help me!) ......
    摘要: 在安装数据库访问组件(mdac)时,出错,提示如下: dasetup.exe 无法找到入口 无法定位程序输入点-lc-collate-cp于动态链接库msvcrt.dll上 我的操作系统是 win2000 高级服务器版 请各位多多指教!谢谢 ......


关于筛选重复记录的SQL语句解决定送分

有两个表,有三个字段,,这两个表的结构是一样的,都是这三个字段。只是记录不同。  
   
  我现在想用SQL语句来把两个表中相同的记录筛选掉。然后生成一个新表。请问这个SQL怎么写????  
   
  谢谢。

NO.1   作者: happydreamer

 
   
   
   
  select   *   into   t3   from  
  (select   *   from   t1   where   not   exists(select   1   from   t2   where   t1.单位名称=t2.单位名称   and   t1.姓名=t2.姓名   and   t1.金额=t2.金额)  
  union    
  select   *   from   t2   where   not   exists(select   1   from   t1   where   t1.单位名称=t2.单位名称   and   t1.姓名=t2.姓名   and   t1.金额=t2.金额)   a  
 

NO.2   作者: pengdali

select   *   into   新表   from   (  
  select   *   from   表1   where   not   exists   (select   1   from   表2   where   表1.单位名称=表2.单位名称   and   表1.姓名=表2.姓名   and   表1.金额=表2.金额)  
  union   all  
  select   *   from   表2   where   not   exists   (select   1   from   表1   where   表1.单位名称=表2.单位名称   and   表1.姓名=表2.姓名   and   表1.金额=表2.金额)   )   tem  
   
   
  select   *   from   新表

NO.3   作者: tj_dns

select   *   into   newtable   from    
  (select   *   from   table1   as   A   where   not   exists    
    (select   *   from   table2   where   单位名称=A.单位名称   and   姓名=A.姓名   and   金额=A.金额)  
  union   all  
    select   *   from   table2   as   B   where   not   exists    
    (select   *   from   table1   where   单位名称=B.单位名称   and   姓名=B.姓名   and   金额=B.金额)  
  )   C  
 


 ·在combox里面怎么加上颜色啊    »显示摘要«
    摘要: 在聊天室里有个字体颜色在combox里面要加上颜色样本怎么加啊? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE