向大力请教:多个数据表的复杂合并?谢谢! select a.*,c.名称,c.型号,c.重量 from 表1 a,表2 c where a.品种编号=c.品种编号 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没看出表2有什么用。Select identity(int,1,1) as id,a.地区代码,a.品种编号,a.单价,b.名称,b.型号,b.重量 into #tmpfrom 表1 ajoin 表3 c on a.品种编号 = b.品种编号select * from #tmp 服务器: 消息 207,级别 16,状态 3,行 1Invalid column name '名称'.服务器: 消息 207,级别 16,状态 1,行 1Invalid column name '型号'.服务器: 消息 207,级别 16,状态 1,行 1Invalid column name '重量'. select a.*,c.名称,c.型号,c.重量 from 表1 a,表3 c where a.品种编号=c.品种编号 Select identity(int,1,1) as id,a.地区代码,a.品种编号,a.单价,b.名称,b.型号,b.重量 into #tmpfrom 表1 ajoin 表3 b on a.品种编号 = b.品种编号select * from #tmp 如何查找表中的姓名列具有相同的值,或某两列具有相同的值 这个语句该怎么写? 如何 将txt文件导入到SQL server2000中 请教高手指点存储过程 记录 数据的更新时间的触发器如何写? sos!,暑假实习 刚才问题已结贴,另求教 邹建及各高手 一个问题,谢谢! SQL Server的应用问题 sql里计算:发布信息时间距离当前时间为 几年几月几日几小时几分钟之前 局域网内sql server远程连接不停跳出登录怎么解决 请教怎么修改一个字段的排序规则 如何对INT型的数据求平均值,并且求出来的数值是它四舍五入后的数值?
Select identity(int,1,1) as id,a.地区代码,a.品种编号,a.单价,b.名称,b.型号,b.重量
into #tmp
from 表1 a
join 表3 c on a.品种编号 = b.品种编号select * from #tmp
Invalid column name '名称'.
服务器: 消息 207,级别 16,状态 1,行 1
Invalid column name '型号'.
服务器: 消息 207,级别 16,状态 1,行 1
Invalid column name '重量'.
into #tmp
from 表1 a
join 表3 b on a.品种编号 = b.品种编号select * from #tmp