使用符号连接输出中的列名称

时间:2014-02-21 18:08:53

标签: sql postgresql

我有一张桌子

enter image description here

我想在输出中加入两个列名来获得解析“ 2014-02-21T20:38:40.56

以下是我的工作:

SELECT id, date+time AS date
FROM table

这就是我得到的:

enter image description here

如何将名称加上“T”符号而不是空格?

1 个答案:

答案 0 :(得分:1)

试试这个

SELECT id, date||'T'||time AS date
FROM table
相关问题