【发布时间】:2018-08-27 11:50:53
【问题描述】:
假设:-
subh=# select 'test123';
?column?
-------------------------------------
test123
和
subh=# select obj_description('test123'::regclass);
obj_description
--------------------
this is my table
我正在运行这个查询:-
subh=# select 'test123' || ' ' || obj_description('test123'::regclass) as test;
test
-------------------------------
test123 this is my table
其实我希望输出如下:-
test
-------------------------------
test123 'this is my table'
【问题讨论】:
-
''' ' || obj_description('test123'::regclass) || ''''