联接表的问题。 select * from table1,table2where table1.field1*=table2.field1union select * from table1,table2where table1.field1=*table2.field1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from table1,table2where table1.field1*=*table2.field1 可以这样: 假使字段前四个部分完整select * from table1 LEFT JOIN table2 on substring(table1.field1,1,4)=substring(table2.field2,1,4) where .... 同意leeyoong(莫西)。只是这样的表结构太可怕,用union效率很低,不得已才用之 在sqlserver中可以使用全连接select t1.*,t2.* from table1 t1 full join table2 t2 on t1.id=t2.id select * from table1,table2where table1.field1*=table2.field1union select * from table1,table2where table1.field1=*table2.field1 *=确实不好,而且会被淘汰(MS 说的)。smartdonkey(聪明的毛驴) 说的对,用全连接。 求教,关于表中的日期更改问题。 仙剑奇侠传2开启的滚动卷轴的效果是怎么做的 求助 SQL2000 备份方法求助 GUID和字符串比较的问题,高手进!! 分布式数据中的INSERT,DELETE,SELECT语句怎么写! 记录由行变成列的SQL语句怎么写?谢谢 请教数据库创建语句 新手请教select where命令 sql 如何判断指定的主键值在表中第几行 我在sql server 中字段用text数据类型放较大的文本字符,在oracle中该用什么数据类型啊? 如何在工作站仿问win2000 server下的sql2000的数据库,工作站端及服务器端如何设置?
where table1.field1*=*table2.field1
假使字段前四个部分完整select * from table1 LEFT JOIN table2 on substring(table1.field1,1,4)=substring(table2.field2,1,4) where ....
select t1.*,t2.* from table1 t1 full join table2 t2 on t1.id=t2.id
where table1.field1*=table2.field1
union
select * from table1,table2
where table1.field1=*table2.field1
smartdonkey(聪明的毛驴) 说的对,用全连接。