打印本文 打印本文 关闭窗口 关闭窗口
SQL的详细语法介绍——对于学习数据库最基础知识一
作者:武汉SEO闵涛  文章来源:敏韬网  点击数27060  更新时间:2007/11/14 12:56:23  文章录入:mintao  责任编辑:mintao
返回 second_table中所有的行尽管在first_table”中没有相匹配的数据。

 

Alias

用途:

可用在表、结果集或者列上,为它们取一个逻辑名称

语法:

给列取别名:

SELECT column AS column_alias FROM table

       给表取别名:

SELECT column FROM table AS table_alias

例:

“Persons”表中的原始数据:

LastName

FirstName

Address

City

Hansen

Ola

Timoteivn 10

Sandnes

Svendson

Tove

Borgvn 23

Sandnes

Pettersen

Kari

Storgt 20

Stavanger

运行下面的

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]  ...  下一页 >> 

打印本文 打印本文 关闭窗口 关闭窗口