立即结贴给分!!!急急急!!!在线等!!!

sugui 2003-04-23 05:36:52
select IDENTITY(int, 1,1) AS ID_Num,* into #temp from table
select * from #temp where ID_Num = 2
drop table #temp

上面的三句sql语句是否能够一次性调用?怎样调用?
...全文
20 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
minfei 2003-04-23
  • 打赏
  • 举报
回复
同意楼上
maconelxp 2003-04-23
  • 打赏
  • 举报
回复
写成一个存储过程了
ministry_bill 2003-04-23
  • 打赏
  • 举报
回复
好像应该是:conn.execute(select IDENTITY(int, 1,1) AS ID_Num,* into #temp from table ; select * from #temp where ID_Num = 2 ; drop table #temp)
如果不行的话可以考虑调用存储过程

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧