mysql study notes 2

Introduction

Basic syntax of query:

select * from 表名;

illustrate:

Write the table name after the from keyword, indicating that the data comes from this table

After select, write the column name in the table, if it is *, all columns in the table will be displayed in the result

In the column name part after select, you can use as to alias the column, and this alias appears in the result set

If you want to query multiple columns, separate them with commas

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325209897&siteId=291194637