Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个名为 Table1 的表,我们想为它创建一个别名,例如 Table2,以便在任何查询中它都被理解为 Table1。在psql中可以吗?
您可以使用视图:
create view table2 as select * from table1;