在我看来,以下代码在 关键字“IF”附近产生错误消息 Incorrect syntax
ALTER VIEW [dbo].[IDW_vwGetProductOutPut]
AS
IF EXISTS
( SELECT * FROM tempdb.dbo.sysobjects
WHERE ID = OBJECT_ID(N'tempdb..#TempPackaging'))
BEGIN
DROP TABLE #TempPackaging
END . . . . . .
--code to create temp table goes here . . and so on
请问我该如何编码?