gpt4 book ai didi

MySQL 仅选择 1 个具有 AS 别名的字段

转载 作者:可可西里 更新时间:2023-11-01 06:27:58 25 4
gpt4 key购买 nike

我想选择表格中的所有列,但只给其中一列一个别名。

我有这张表:

id
base
window
thickness
shading
shape
... and many more columns

现在,我想选择带有别名的 base,如下所示:SELECT base AS structure。但我也想选择所有其他字段,而不必全部输入。

我试过 SELECT *, base AS structure,但它给了我一个错误。

事实上,这甚至不是我真正想要的,因为我根本不想让 base 出现。

这有可能吗?

最佳答案

不,不是。忍住,把它们都打出来 :)

关于MySQL 仅选择 1 个具有 AS 别名的字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6906408/

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