【发布时间】:2020-05-20 15:26:42
【问题描述】:
我正在尝试在 Vertica 中创建一个用 SAS 编写的视图。
proc sql;
connect to odbc as try
(server='10.10.7.174' port=5433 user=dbadmin password=password );
execute (create view &schema..myview as
( Select * from &schema..table_1
union all
Select * from &schema..table_2
))by try ;
disconnect from try;
quit;
问题是:因此它创建的是表而不是视图。
【问题讨论】:
-
您的代码在 SAS 方面看起来是正确的。日志显示什么?如果您在 Vertica 中运行该确切代码会发生什么?