【发布时间】:2021-06-21 02:29:51
【问题描述】:
我正在尝试使用 INSERT INTO 使用在线教程在 SAS Enterprise Guide 中整理一个表格,但是当我执行与教程相同的操作时会不断出错。可能出了什么问题?
我的代码:
/* Create the table */
CREATE TABLE Summary_1920 (
Variable VARCHAR(255),
Count INT,
Percentage FLOAT );
/* Create and insert the variable names */
INSERT INTO Summary_1920
(Variable, Count, Percentage)
VALUES
("Variable1", 100, 90.8),
("Variable2", 8, 7.0);
QUIT;
错误:
28 ("IntName", 100, 90.8),
_
22
200
ERROR 22-322: Syntax error, expecting one of the following: ;, VALUES.
ERROR 200-322: The symbol is not recognized and will be ignored.
这是我第一次使用 SAS EG/SQL,所以它可能非常明显,但我多年来一直在尝试解决这个问题。感谢您提供任何见解。
【问题讨论】:
标签: sql sas enterprise-guide