0

我有这个最初用于 Oracle 的查询,现在我将其转换为 SQL,并收到以下错误消息:

消息 102,级别 15,状态 1,第 1 行“导入”附近的语法不正确。

我还连接到另一个 SQL 服务器。

开始导入数据

-- Import Realmast
USE TAXPAYER

DROP TABLE VISION_REALMAST1
SELECT * 
INTO dbo.VISION_REALMAST
FROM [TOMSQLVISION].[VISION_2020].[REAL_PROP].[REALMAST]
--DROP THE PUBLIC EMPLOYEES
DELETE FROM dbo.VISION_REALMAST1 
WHERE REM_INET_SUPPRESS = 1 
-- Update the GIS ID field in realmast
UPDATE dbo.VISION_REALMAST1
SET REM_GIS_ID = CAST(CAST(REM_MBLU_MAP AS INT) AS VARCHAR(20))  +'-'+ CAST(CAST(REM_MBLU_BLOCK AS INT) AS VARCHAR(20))
4

0 回答 0