我可以不在insert语句中使用函数吗?

时间:2017-11-27 14:56:31

标签: sql sas sql-insert

似乎我不能在insert语句中使用SAS函数:

proc sql;

     create table tq84_tab (col char(100));
     insert into  tq84_tab values (repeat('foo ', 10));

quit;

当我运行代码时,我得到了:

insert into  tq84_tab values (repeat('foo ', 10));
  ----     -----
   22       26
  202      200  

ERROR 22-322: Syntax error, expecting one of the following: a quoted string, a numeric constant, a datetime constant, 
              a missing value, +, -, MISSING, NULL, USER.   
ERROR 200-322: The symbol is not recognized and will be ignored.
ERROR 202-322: The option or parameter is not recognized and will be ignored.

我做错了什么,或者我的确是这样吗?

0 个答案:

没有答案