1、as可以被用作重命名列名或者表名,如有一张表table,表中有2个列:column1和column2。 语句:select column1 as 列1,column2 as 列2 from table as 表 2、select * from students as ss:查询students表里的所有数据,并把students表命名为ss; 当一个表被重命名后,就可以在下面用ss代替studens:select * from ss 3、查询结果以中文显示:select sno as 学生号, sname as 学生名字, age as 年龄, sex as 性别, tel as 电话 from students
|
|