MySQL数据库的常用命令语句记录——数据操纵语句及函数
对于事物:InnoDB,NDB Cluster和BDB存储引擎支持事物,如果使用MyISAM等引擎则会忽略事物语句。 [ALL | DISTINCT | DISTINCTROW ] [HIGH_PRIORITY] [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT] [SQL_CACHE | SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS] -- SQL_CALC_FOUND_ROWS记录查询结果集的行数,忽略LIMMIT语句,然后使用FOUND_ROWS获取行数 select_expr [, select_expr ...] [FROM table_references [PARTITION partition_list] [WHERE where_condition] [GROUP BY {col_name | expr | position} [ASC | DESC], ... [WITH ROLLUP]] [HAVING where_condition] [ORDER BY {col_name | expr | position} [ASC | DESC], ...] [LIMIT {[offset,] row_count | row_count OFFSET