gpt4 book ai didi

mysql - 在其中添加带有 * 的列名称

转载 作者:行者123 更新时间:2023-11-30 21:57:41 25 4
gpt4 key购买 nike

我想从数据库中获取数据并将其重命名为 Area(wid*hght) 我该怎么做这些家伙在 SQL 中,

SELECT conact(width,'*',height) as AREA(wid*hght) .. 但是这让我在 AREA(wid*hght) 中出错

最佳答案

如果您需要列名的别名,当出现特殊字符时,您应该在这些字符串周围使用反引号

SELECT concat(width,'*',height) as `AREA(wid*hght)`

关于mysql - 在其中添加带有 * 的列名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44518150/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com