一个问题???? select id identity(1,1),t.* from(select a.ent_name,b.id as b_id,b.c_id as c_id b.product_name from a,b where a.id=b.c_id)t 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 改正select id identity(1,1),t.* into cfrom(select a.ent_name,b.id as b_id,b.c_id as c_id b.product_name from a,b where a.id=b.c_id)t 首先创建C表,然后用批量插入法将A\B中的数据插入C表中 select identity(1,1) as id , a.ent_name ,b.id as bid ,b.c_id,b.product_name into cfrom a , bwhere b.c_id = a.id 不好意思,再改正哦select identity(int,1,1) as id,t.* into cfrom(select a.ent_name,b.id as b_id,b.c_id as c_id b.product_name from a,b where a.id=b.c_id)t select a.id,a.ent_name ,b.id ,b.c_id,b.product_namefrom A a left join B b on a.id=b.c_id 菜鸟的问题啊,唉~~~~~大侠来吧~~~急哦 一个SQL查询语句的困惑 菜鸟向各位大侠求教表连接问题 求一Sql语句 求一条查询SQL语句 挑战,优化一个insert插入不同记录 Server2000 安装问题和系统问题 sql2005全文索引(有些记录查不到) 错误提示:多步 OLE DB操作产生错误.请检查每个ole db状态值.没有工作被完成???如何解决??? sql 2008 如果安装时没有使用默认实例名 任何让登陆时使用127.0.0.1,。,主机名等登陆 怎样 SELECT 所有包含小写字母的列?求最简便方法! 看看我的问题吧,各位,关于数据库更新的问题?
select id identity(1,1),t.* into c
from
(select a.ent_name,b.id as b_id,b.c_id as c_id b.product_name
from a,b
where a.id=b.c_id)t
into c
from a , b
where b.c_id = a.id
select identity(int,1,1) as id,t.* into c
from
(select a.ent_name,b.id as b_id,b.c_id as c_id b.product_name
from a,b
where a.id=b.c_id)t
from A a left join B b on a.id=b.c_id