1)查看数据库:SHOW database
2)选择数据库:USE database_name
3)表定义信息:DESCRIBE table_name
4)插入数据:INSERT INTO table_name (field_1...field_n) VALUES (value_1...value_)
5)更新数据:UPDATE table_name SET field_1=value_1...field_n=value_n WHERE CONDITION
6)删除记录:DALETE FROM table_name WHERE CONDITION
7)单表数据查询:SELECT field_1,field_n FROM table_name
避免重复:SELECT DISTINCT filed_1,field_n FROM table_name
排序查询:SELECT field_1,field_n FROM table_name WHERE CONDITION ORDER BY field_name[ASC|DESC]
限制数据记录查询数量:SELECT field_1,field_n FROM table_name WHERE CONDITION LIMIT OFFSET_SATRT,ROW_COUNT
limit 10,30表示从第10行开始返回,返回30行
统计制定列的值的数目:SELECT COUNT(field_name) FROM table_name