我想选择表中的所有列,但只给其中一个别名.
我有这张桌子:
id
base
window
thickness
shading
shape
... and many more columns
Run Code Online (Sandbox Code Playgroud)
现在,我想选择base一个别名,如下所示:SELECT base AS structure.但是我想要选择所有其他字段,而不必全部输入.
我试过了SELECT *, base AS structure,但它给了我一个错误.
事实上,这甚至不是我想要的,因为我根本不想base露面.
这是可能吗?