摘要: 事务控制语句和锁语句也有例外:如果一个隐式提交发生在执行之前,那么其他的在之后也不会发生。 Data definition language (DDL) statements that define or modify database objects. ALTER DATABASE ... UPG 阅读全文
posted @ 2020-08-18 02:20 wongchaofan 阅读(240) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/5.7/en/commit.html START TRANSACTION [transaction_characteristic [, transaction_characteristic] ...] transaction_char 阅读全文
posted @ 2020-08-18 01:57 wongchaofan 阅读(99) 评论(0) 推荐(0) 编辑
摘要: UPDATE is a DML statement that modifies rows in a table. Single-table syntax: UPDATE [LOW_PRIORITY] [IGNORE] table_reference SET assignment_list [WHER 阅读全文
posted @ 2020-08-18 01:17 wongchaofan 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 不建议使用子查询,能用链接的用链接,子查询影响服务器性能。 SELECT * FROM t1 WHERE column1 = (SELECT column1 FROM t2); DELETE FROM t1 WHERE s11 > ANY (SELECT COUNT(*) /* no hint */ 阅读全文
posted @ 2020-08-18 00:37 wongchaofan 阅读(70) 评论(0) 推荐(0) 编辑
摘要: SELECT [ALL | DISTINCT | DISTINCTROW ] [HIGH_PRIORITY] [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT] [SQL_CACHE | SQL_NO_CAC 阅读全文
posted @ 2020-08-18 00:35 wongchaofan 阅读(258) 评论(0) 推荐(0) 编辑
摘要: REPLACE [LOW_PRIORITY | DELAYED] [INTO] tbl_name [PARTITION (partition_name [, partition_name] ...)] [(col_name [, col_name] ...)] {VALUES | VALUE} (v 阅读全文
posted @ 2020-08-18 00:18 wongchaofan 阅读(362) 评论(0) 推荐(0) 编辑
摘要: LOAD XML [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name' [REPLACE | IGNORE] INTO TABLE [db_name.]tbl_name [CHARACTER SET charset_name] [ROWS ID 阅读全文
posted @ 2020-08-18 00:13 wongchaofan 阅读(310) 评论(0) 推荐(0) 编辑
摘要: LOAD DATA [LOW_PRIORITY | CONCURRENT] [LOCAL] INFILE 'file_name' [REPLACE | IGNORE] INTO TABLE tbl_name [PARTITION (partition_name [, partition_name] 阅读全文
posted @ 2020-08-18 00:10 wongchaofan 阅读(179) 评论(0) 推荐(0) 编辑
摘要: INSERT [LOW_PRIORITY | DELAYED | HIGH_PRIORITY] [IGNORE] [INTO] tbl_name [PARTITION (partition_name [, partition_name] ...)] [(col_name [, col_name] . 阅读全文
posted @ 2020-08-18 00:07 wongchaofan 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: HANDLER tbl_name OPEN [ [AS] alias] HANDLER tbl_name READ index_name { = | <= | >= | < | > } (value1,value2,...) [ WHERE where_condition ] [LIMIT ... 阅读全文
posted @ 2020-08-17 07:01 wongchaofan 阅读(75) 评论(0) 推荐(0) 编辑