求一简单查询
两张表做匹配 
 table1                                             table2 
 col1         col2                                    col1                     col2 
 1                     aa                                          1                        12-df.fas-aa.hh 
 2                     bb                                          2                        fdsa-cc.mk-123 
 3                     cc                                          3                        32-bb.iuyi-87987asdf 
 结果为 
 table3 
 col1            col2            col3 
 1                        aa               12-df.fas-aa.hh 
 2                        bb               32-bb.iuyi-87987asdf 
 3                        cc               fdsa-cc.mk-123   
 意思就是在table2中的col2中找到包含table1中col2中的记录插入table1的第三列    
 谢谢各位大哥,在线等! 
------解决方案----------------------刚才没看清楚你的意思   
 SELECT A.COL1,A.COL2,COL3 = B.COL2 INTO TABLE3 FROM TABLE1 A LEFT JOIN TABLE2 B ON  CHARINDEX(A.COL2,B.COL2) >  0
------解决方案--------------------意思就是在table2中的col2中找到包含table1中col2中的记录插入table1的第三列  
 ........... 
 你们看帖哇~晕死
------解决方案--------------------  create table tbl1(col1 int, col2 varchar(20) ) 
 insert into tbl1  
 select 1 ,       'aa '  union all 
 select 2 ,       'bb '  union all 
 select 3 ,       'cc '      
 create table tbl2(col1 int, col2 varchar(20) ) 
 insert into tbl2  
 select 1 ,       '12-df.fas-aa.hh '  union all 
 select 2 ,       'fdsa-cc.mk-123 '  union all 
 select 3 ,       '32-bb.iuyi-87987asdf '   
 create table tbl3(col1 int, col2 varchar(20),col3 varchar(30) )   
 insert into tbl3 select a.col1,a.col2,b.col2 from tbl1 a,tbl2 b 
 where charindex(a.col2,b.col2)> 0   
 select * from tbl3 
 col1        col2                 col3 
 ----------- -------------------- ------------------------------ 
 1           aa                   12-df.fas-aa.hh 
 3           cc                   fdsa-cc.mk-123 
 2           bb                   32-bb.iuyi-87987asdf   
 (3 行受影响)