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.
我有一个查询:其中主题表包含名称
SELECT 'title in DB: ' || name FROM subject;
它会打印 select 语句本身
它发生在所有查询中。如何阅读这个?
这是您选择的列的表格输出。如果你只是想让它这样Name 做:
Name
SELECT 'title in DB: ' || name as Name FROM subject;
这通常称为别名列名。
如果您想更改标题,只需使用别名
select 'title in DB: '|| name as Title from subject