随笔分类 -  mysql / mysql数据操作

摘要: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 阅读(247) 评论(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 阅读(71) 评论(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 阅读(259) 评论(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 阅读(365) 评论(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 阅读(314) 评论(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 阅读(180) 评论(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 阅读(1352) 评论(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 阅读(76) 评论(0) 推荐(0) 编辑
摘要:DO expr [, expr] ... DO语句执行表达式但不返回任何结果。 mysql> SELECT SLEEP(5); + + | SLEEP(5) | + + | 0 | + + 1 row in set (5.02 sec) mysql> DO SLEEP(5); Query OK, 0 阅读全文
posted @ 2020-08-17 06:39 wongchaofan 阅读(109) 评论(0) 推荐(0) 编辑
摘要:Single-Table Syntax DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name [PARTITION (partition_name [, partition_name] ...)] [WHERE where_condition] [ 阅读全文
posted @ 2020-08-17 06:36 wongchaofan 阅读(337) 评论(0) 推荐(0) 编辑
摘要:CALL sp_name([parameter[,...]]) CALL sp_name[()] CREATE PROCEDURE p (OUT ver_param VARCHAR(25), INOUT incr_param INT) BEGIN # Set value of OUT paramet 阅读全文
posted @ 2020-08-17 06:29 wongchaofan 阅读(549) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示