Home > Database > Mysql Tutorial > body text

SQL Server的SQL技巧

WBOY
Release: 2016-06-07 15:00:21
Original
1064 people have browsed it

declare @tmpt table(a int,b numeric(20,3),c numeric(20,3)) insert into @tmpt EXECUTE cbdbfxt 2005,5,'670,' select * from @tmpt drop table #tmpt create table #tmpt(a int,b numeric(20,3),c numeric(20,3)); insert into #tmpt EXECUTE cbdbfxt 20

declare @tmpt table(a int,b numeric(20,3),c numeric(20,3))
insert into @tmpt EXECUTE cbdbfxt 2005,5,'670,'
select * from @tmpt


drop table #tmpt
create table #tmpt(a int,b numeric(20,3),c numeric(20,3));
insert into #tmpt EXECUTE cbdbfxt 2005,5,'670,'
select a,b from #tmpt

declare @ss varchar(100)
set @ss='select UserID from T_User'
create table #e(U varchar(10))
insert into #e exec(@ss)
select * from #e

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template