NewID为新建Guid的内置函数,into #TempAMajor 则为新建的临时表
select top 4 *,NewID() as RandomId into #TempAMajor
from QMCS_User
判断是否有此缓存表,有则删除
IF OBJECT_ID(N'tempdb.dbo.#TempAMajor') IS NOT NULL
DROP TABLE #TempAMajor
NewID为新建Guid的内置函数,into #TempAMajor 则为新建的临时表
select top 4 *,NewID() as RandomId into #TempAMajor
from QMCS_User
判断是否有此缓存表,有则删除
IF OBJECT_ID(N'tempdb.dbo.#TempAMajor') IS NOT NULL
DROP TABLE #TempAMajor