【发布时间】:2021-08-15 11:10:29
【问题描述】:
在 MySQL 中,可以通过 'c1 and c2' 或 'c1 c2' 重命名获取的结果。在文档中,它说 'c1 and c2' is supported ,但找不到关于 'c1 c2' 的任何信息。 TDengine是否支持'select c1 c2 from table'?
【问题讨论】:
标签: tdengine
在 MySQL 中,可以通过 'c1 and c2' 或 'c1 c2' 重命名获取的结果。在文档中,它说 'c1 and c2' is supported ,但找不到关于 'c1 c2' 的任何信息。 TDengine是否支持'select c1 c2 from table'?
【问题讨论】:
标签: tdengine
select c1,c2 from table
或者如果你想使用别名
select c1 as xxx, c2 as xxx from table
【讨论】:
也可以尝试使用select c1 xxx, c2 xxx from table,忽略as关键字。
【讨论】: