谁能给我解释一下as的用法阿

来源:百度知道 编辑:UC知道 时间:2024/05/05 18:03:56
select id,column1 * column2 as column from table1
谁明白这个语句的意思?
希望把as的用法讲的明白些
不是英语里面的as用法,是asp里面的用法

AS 在SQL语句里是起一个别名的意思
如:select id,column1 * column2 as column from table1

在查询时可以使用column来表示(column1 * column2)

(1)As作“虽然”讲,可用于倒装句。

例:Child as he is , he knows a lot .

(2)as常引导非限制定语从句,指主句所表达的整个内容。

例:As you know , he wrote a lot of fairy tales .

(3)as作“由于”“因为”讲,语气比because轻。

(4)“as +形容词+ as +形容词+ can be”是一种强调句型,含有最高程度的意味。

例:The man is as poor as can be .