查询数据,插入临时表
生活随笔
收集整理的這篇文章主要介紹了
查询数据,插入临时表
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
代碼 create procedure ProcName
@param1 param1Type,....
as
set nocount on
--和create table語句語法類似,列名 后接 列類型就夠了,是你返回表的結構
declare @t table(id int,[name] varchar(20)....)
insert into @t (feild1,field2....)
select .....
from ....
where ...
group by ...
order by ....
set nocount off
select * from @t
@param1 param1Type,....
as
set nocount on
--和create table語句語法類似,列名 后接 列類型就夠了,是你返回表的結構
declare @t table(id int,[name] varchar(20)....)
insert into @t (feild1,field2....)
select .....
from ....
where ...
group by ...
order by ....
set nocount off
select * from @t
?
轉載于:https://www.cnblogs.com/Sue_/articles/1705513.html
總結
以上是生活随笔為你收集整理的查询数据,插入临时表的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android的数据存储
- 下一篇: 改动下ICTCLAS4J 0.9.1 提