Home > Database > Mysql Tutorial > 获取临时表的列名

获取临时表的列名

WBOY
Release: 2016-06-07 14:57:06
Original
1648 people have browsed it

获取临时表的列名 无 create table #SomeTmpTbl(col1 int,col2 varchar(20),col3 datetime)GOselect * from tempdb.sys.columns where object_id =object_id('tempdb..#SomeTmpTbl');

获取临时表的列名
create table #SomeTmpTbl
(
col1 int,
col2 varchar(20),
col3 datetime
)

GO

select * from tempdb.sys.columns where object_id =
object_id('tempdb..#SomeTmpTbl');
Copy after login
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