1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| select [all || distinct] {* | table.* | [table.field1[as alias1][, table.field2[as alias2]][,...]]} from table_name [as table_alias] [left | right | inner join table_name2] [where ...] [group by ...] [having] [order by ...] [limit {[offset,]row_count | row_countOFFSET offset}];
select * from [表]
select [字段名], [字段名] from [表]
select [字段名] as [别名] from [表]
select concat('姓名:', [字段名]) as [别名] from [表]
|