我想修改SQL表的输出,例如,在SQL的选择表中添加额外的文本或元素。并且下面的查询无法执行,因为面临不匹配的输入。
select date, '123' & text from database123
Normal Output
| Date | Text |
| -------- | ------|
| 01/01/2021 | Car |
| 01/02/2021 | Car |
Expecting Output
| Date | Text |
| -------- | ------ |
| 01/01/2021 | 123Car |
| 01/02/2021 | 123Car |发布于 2021-08-17 14:42:46
您可以使用concat或||
SELECT concat('123', text), '123' || text
FROM database123https://stackoverflow.com/questions/68819325
复制相似问题