cra*_*ver 6 sql t-sql sql-server stored-procedures
如何创建一个与存储过程中的当前表完全相同的临时表?
Luk*_*Led 15
select * into #temp_table from current_table_in_stored_procedure
#temp_table - locally temp
##temp_table - globally temp
select top 0 * into #temp_table from current_table_in_stored_procedure to have empty table
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9413 次 |
| 最近记录: |