摘要: Linux awk 命令 https://www.runoob.com/linux/linux-comm-awk.html AWK 是一种处理文本文件的语言,是一个强大的文本分析工具。 之所以叫 AWK 是因为其取了三位创始人 Alfred Aho,Peter Weinberger, 和 Brian 阅读全文
posted @ 2020-08-20 03:16 wongchaofan 阅读(117) 评论(0) 推荐(0) 编辑
摘要: sed 流编辑脚本 语法: sed [OPTION]... {script-only-if-no-other-script} [input-file]... 通常调用sed的格式: sed SCRIPT INPUTFILE... 如果指定了标准输入文件,格式大概是这样子: sed ’s/hello/ 阅读全文
posted @ 2020-08-19 07:57 wongchaofan 阅读(406) 评论(0) 推荐(0) 编辑
摘要: CASE语句 CASE case_value WHEN when_value THEN statement_list [WHEN when_value THEN statement_list] ... [ELSE statement_list] END CASE CASE WHEN search_c 阅读全文
posted @ 2020-08-18 08:50 wongchaofan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Local Variable DECLARE Statement DECLARE var_name [, var_name] ... type [DEFAULT value] 该语句在存储的程序中声明局部变量。要提供变量的默认值,请包含一个 DEFAULT子句。该值可以指定为表达式;它不必是常数。如 阅读全文
posted @ 2020-08-18 08:06 wongchaofan 阅读(127) 评论(0) 推荐(0) 编辑
摘要: [begin_label:] BEGIN [statement_list] END [end_label] [begin_label:] LOOP statement_list END LOOP [end_label] [begin_label:] REPEAT statement_list UNT 阅读全文
posted @ 2020-08-18 07:26 wongchaofan 阅读(106) 评论(0) 推荐(0) 编辑
摘要: [begin_label:] BEGIN [statement_list] END [end_label] BEGIN ... END 语法用于编写复合语句,复合语句可以出现在存储程序(存储过程和函数,触发器和事件)中。复合语句可以包含多个语句,并用BEGIN和 END关键字括起来。 stateme 阅读全文
posted @ 2020-08-18 07:16 wongchaofan 阅读(242) 评论(0) 推荐(0) 编辑
摘要: https://dev.mysql.com/doc/refman/5.7/en/sql-prepared-statements.html 阅读全文
posted @ 2020-08-18 06:51 wongchaofan 阅读(70) 评论(0) 推荐(0) 编辑
摘要: SET [GLOBAL | SESSION] TRANSACTION transaction_characteristic [, transaction_characteristic] ... transaction_characteristic: { ISOLATION LEVEL level | 阅读全文
posted @ 2020-08-18 06:43 wongchaofan 阅读(462) 评论(0) 推荐(0) 编辑
摘要: LOCK TABLES tbl_name [[AS] alias] lock_type [, tbl_name [[AS] alias] lock_type] ... lock_type: { READ [LOCAL] | [LOW_PRIORITY] WRITE } UNLOCK TABLES M 阅读全文
posted @ 2020-08-18 06:21 wongchaofan 阅读(251) 评论(0) 推荐(0) 编辑
摘要: SAVEPOINT identifier ROLLBACK [WORK] TO [SAVEPOINT] identifier RELEASE SAVEPOINT identifier InnoDB supports the SQL statements SAVEPOINT, ROLLBACK TO 阅读全文
posted @ 2020-08-18 02:24 wongchaofan 阅读(171) 评论(0) 推荐(0) 编辑