【SQLSERVER】獲取建表DDL(+主鍵)

--獲取建表DDL(+主鍵) declare @tabname varchar(50) set @tabname='testbzm'--表名 if ( object_id('tempdb.dbo.#t') is not null) begin DROP TABLE #t end select 'create table [' + so.name + '] (' + o.list + ')' + C
相關文章
相關標籤/搜索