我正在尝试做一些非常简单的事情。我想在临时表中添加一个空白列,因为我的调用程序需要该列。我以为我做得对,但Pervasive不喜欢它(它说'后缀 - 语法错误')。这适用于MS SQL
CREATE TABLE #Radiologists (
RadiologistID CHAR(8) not null,
FirstName CHAR(15) NOT null,
MiddleInitial CHAR(1),
LastName CHAR(20) NOT null,
Suffix char(1)
);
INSERT INTO #Radiologists (
SELECT IDCode, FirstName, Initial, LastName, '' AS Suffix
FROM HOSP
WHERE MainType='R'
);