oracle ddl 正则表达式验证

151 阅读1分钟

create table

image.png

正则校验

^(\s*create\s+(sharded\s+|duplicated\s+|immutable\s+blockchain\s+|immutable\s+|(global|private)\s+temporary\s+)?table\s+)(.*)

可视化

image.svg

comment on

正则校验

^(\s*comment\s+on\s+)(table\s+|column\s+)(.*)

可视化

image.png

Refs

  1. Oracle Create Table
  2. Oracle Create Table Regexp
  3. Oracle Comment on Regexp