MySQL grammer Posted on 2017-08-01 | In Database SQL基础Select123select column1, column2, ... from table_name;select * from table_name; Distinct12select distinct column1, column2, ... from table_name; Where123select column1, column2, ... from table_name where condition; And , Or, Not1234567891011select column1, column2, ... from table_name where condition1 and condition2 and condition3 ...;select column1, column2, ... from table_name where condition1 or condition2 or condition3 ...;select column1, column2, ... from table_name where not condition; Order By123select column1, column2, ... from table_name order by column1, column2, ... ASC|DESC; Insert Into12345insert into table_name values (value1, value2, value3, ...);insert into table_name (column1, column2, column3, ...) values (value1, value2, value3, ...); Null Values1234567select column_namesfrom table_namewhere column_name is null;select column_namesfrom table_namewhere column_name is not null; Update123update table_name set column1 = value1, column2 = value2, ... where condition; Delete12delete from table_name where condition;