如何在SAS的PROC SQL中使用名称('库名称')中的空格列?
proc sql outobs=10;
select *
from sashelp.vtable
where library name = xxx
;
run;
Run Code Online (Sandbox Code Playgroud)
我试过了:
proc sql outobs=10;
select *
from sashelp.vtable
where 'Libname'n = test_lin;
quit;
proc sql outobs=10;
select *
from sashelp.vtable
where 'library name'n = test_lin;
quit;
proc sql outobs=10;
select *
from sashelp.vtable
where libname = test_lin;
quit;
Run Code Online (Sandbox Code Playgroud)
错误:在贡献表中找不到以下列:test_lin.
变量名称:libname
变量标签:库名称
proc sql outobs=10;
select *
from sashelp.vtable
where 'library name'n = xxx
;
run;
Run Code Online (Sandbox Code Playgroud)
一个SAS名称文字是表达为引号内的字符串,然后由大写或小写字母的名称标记ñ....您只能对变量,语句标签和DBMS列和表名使用名称文字.
| 归档时间: |
|
| 查看次数: |
9421 次 |
| 最近记录: |