set nocount on
if object_id('tempdb..#lsb2') is not null
DROP TABLE #lsb2
select top 1 * into #lsb2 from tab
set nocount off
本文将介绍如何使用SQL语句进行数据库操作,包括创建、删除临时表和设置计数选项,同时提供优化数据库管理实践的策略。
set nocount on
if object_id('tempdb..#lsb2') is not null
DROP TABLE #lsb2
select top 1 * into #lsb2 from tab
set nocount off

被折叠的 条评论
为什么被折叠?