怎么给视图创建一个自增长标识列(id)啊? http://expert.csdn.net/Expert/topic/2437/2437014.xml?temp=.67857交流]自增号 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select indentity(int,1,1) as id,* into #t form tablenameselect * from #tgodrop #t select indentity(int,1,1) as id,* into #t from tablenameselect * from #tgodrop table #t http://expert.csdn.net/Expert/topic/2437/2437014.xml?temp=.67857自增号 create view view_1asselect ...此处好像不能用identity函数啊? 楼主要注意的是,视图其实是一个虚表。帮他加自动编号又有什么意义呢!你在查视图中的数据时加上自动编号不就行了。select indentity(int,1,1) as id,* form 视图 上面的错了:select identity(int,1,1) as id,* into #aa form 视图select * from #aadrop table #aa 提示语法错误,但是这个语句在access中通过 SQL 语句 装了SQL后c盘不断减小 从表值函数更新虚拟表,需要从虚拟表传参数进去,一直报这个错,求教该怎么写才对? 数据库读取效率和for循环 紧急问题!!请高手解决。 关于union的一个奇怪的问题 请大家帮个忙 给50分 连接sql server2000数据库的问题呀!! 大力,求助!关于如何复制表结构的问题 没有SQL server服务器能不能注册ODBC数据源?急等100分! 请大家讨论这个错误是怎么发生的呢?
select * from #t
go
drop #t
select * from #t
godrop table #t
自增号
as
select ...此处好像不能用identity函数啊?
你在查视图中的数据时加上自动编号不就行了。select indentity(int,1,1) as id,* form 视图
select identity(int,1,1) as id,* into #aa form 视图
select * from #aa
drop table #aa