lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/alterProcedure.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

26 lines
846 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/alter-procedure.html
/* ALTER PROCEDURE proc_name [characteristic ...]
characteristic: {
COMMENT 'string'
| LANGUAGE SQL
| { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
| SQL SECURITY { DEFINER | INVOKER }
} */
-- 和 ALTER FUNCTION 语法类似
ALTER PROCEDURE procedure_name;
ALTER PROCEDURE procedure_name COMMENT 'get id';
ALTER PROCEDURE procedure_name COMMENT 'get id' LANGUAGE SQL;
ALTER PROCEDURE procedure_name LANGUAGE SQL;
ALTER PROCEDURE procedure_name NOT DETERMINISTIC;
ALTER PROCEDURE procedure_name CONTAINS SQL;
ALTER PROCEDURE procedure_name NO SQL;
ALTER PROCEDURE procedure_name READS SQL DATA;
ALTER PROCEDURE procedure_name MODIFIES SQL DATA;
ALTER PROCEDURE procedure_name SQL SECURITY DEFINER;
ALTER PROCEDURE procedure_name SQL SECURITY INVOKER;