SQL语句中AS是什么意思

如题所述

SQL语句中AS的意思是:别名。
AS用处:
query时
用来重新指定返回的column名字。
示例
一个table有个column叫
id,
query是select
id
from
table1
如果不想叫id,就可重新命名。
如叫
systemID,可这样写:select
id
as
systemId
from
table1。
create
table

procedure

as
是个关键字。
示例
create
table
test
as
select
*
from
table1
这时会create
一个table
test,完全copy
table
table1里的全部数据。
create
procdure
name
as
(is)
begin
end;
这时as和is可以互换。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2020-01-10
&是且的意思,这句话的意思是
从article表中选择所有列,这些列满足type_id为data_type&sql的值。data_type&sql是一个表达式。
不过。。。感觉怪怪的。。。
相似回答