Home > Database > SQL > What is the usage of sql as

What is the usage of sql as

爱喝马黛茶的安东尼
Release: 2020-01-07 14:37:35
Original
23672 people have browsed it

What is the usage of sql as

1. as can be used to rename column names or table names. For example, there is a table with two columns: column1 and column2.

Statement: select column1 as column 1, column2 as column 2 from table as table

2, select * from students as ss: Query all data in the students table, and name the students table is ss;

When a table is renamed, you can use ss instead of students below: select * from ss

3. The query results are displayed in Chinese: select sno as student number,

Sname as student name,

Age as age,

SEX AS sex,

Tel as phone from Students

PHP Chinese Chinese Chinese There are a lot of free SQL tutorials on the Internet, everyone is welcome to learn!

The above is the detailed content of What is the usage of sql as. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template