请教一个sql语句。谢谢了 有两个表table1 table2里面都是 品名、规格 两个字段我如何得到这两个表中所有的不重复的品名,规格数据? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样行不行:select a.*,b.* from a,b where b.品名 not in (select 品名 from a) select distinct(品名),规格 from table1 union select * from table2 select a.品名,a.规格 from a union select b.品名,b.规格 from b where b.品名 not in (select 品名 from a) select distinct(品名),规格 from table1 union select distinct(table2 .品名),table2 .规格 from table2 where table2 . 品名 not in( select 品名 from table1 ) select 品名,规格 (select 品名,规格 from talbe1 union select 品名,规格 from talbe2) group by 品名,规格 select a.品名,a.规格 from (select 品名,规格 from talbe1 union select 品名,规格 from talbe2) a group by a.品名,a.规格 select distinct 品名 from (select distinct 品名 from table1 union select distinct 品名 from table2) select distinct 品名 from (select distinct 品名 from table1 union select distinct 品名 from table2) Timer控件疑问 程序打包后安装上的问题!!!!??????? 打包的问题 !各位大虾帮忙! 我在加控件时,弹出“30天后失效”,是不是要注册,怎么注册呀? 求救:关于shell调用word时怎样才可以用相对路径?谢谢 一个简单的问题 关于InputBox的问题 "!"是什么意思???? 哪位兄弟有mscomm对像的实例 关系型数据库编程难题? 如何把本地文件复制到服务器? ▲▲▲在Vb中无法将Dsr的报表文件加到项目中去,是什么原因?▲▲▲
select a.*,b.* from a,b where b.品名 not in (select 品名 from a)
union
select distinct(table2 .品名),table2 .规格 from table2 where table2 . 品名 not in( select 品名 from table1 )