标签: sql postgresql
我想编写一个程序,该程序每隔几天运行一次,并将输出保存为视图。但是我不希望每次运行sproc时都重命名视图。
因此,我想与current_date(或其他唯一的东西)连接。
current_date
例如:
create view view_name_||current_date as ( select name, date from accounts )