text/x-sql
*.sql
--
N?VARCHAR2
NUMBER
LONG
DATE
TIMESTAMP
INTERVAL
(LONG[ \t\n]+)?RAW
U?ROWID
N?CHAR
(N?C|B)LOB
BFILE
BINARY_(FLOAT|DOUBLE)
(NATIONAL[ \t\n]+)?CHAR(ACTER)?([ \t\n]+VARYING)?
NCHAR([ \t\n]+VARYING)?
NUMERIC|DECIMAL
INTEGER|INT|SMALLINT
FLOAT|DOUBLE[ \t\n]+PRECISION|REAL
CHARACTER
(LONG[ \t\n]+)?VARCHAR
DECIMAL
INTEGER|SMALLINT
FLOAT
SYS\.ANY(TYPE|DATA(SET)?)
XMLType
(HTTP|XDB|DB)?URIType
(MDSYS\.)?SDO_((TOPO_)?GEOMETRY|GEORASTER)
ORDSYS\.ORD(Audio|Doc|Image(Signature)?|Video)
SI_(StillImage|(Average|Positional)?Color|ColorHistogram|Texture|FeatureList)
([Nn]?[Qq]?|[Uu]?)'
'
\b[0-9]+\b
(\b[0-9]+(\.[0-9]+)?|\.[0-9]+)([Ee][\+-]?[0-9]+)?\b
\b[0-9]+[ \t]*([Kk]|[Mm]|[Gg]|[Tt])\b
UNLIMITED
NULL
ABS
A(COS|SIN|TAN2?)
BITAND
CEIL
(COS|SIN|TAN)H?
EXP
FLOOR
LN
LOG
MOD
NANVL
POWER
REMAINDER
ROUND
SIGN
SQRT
TRUNC
WIDTH_BUCKET
N?CHR
CONCAT
(NLS_)?(INITCAP|LOWER|UPPER)
(L|R)PAD
(L|R)?TRIM
NLSSORT
REGEXP_(REPLACE|SUBSTR)
REPLACE
SOUNDEX
SUBSTR
TRANSLATE
TREAT
NLS_CHARSET_DECL_LEN
NLS_CHARSET_(ID|NAME)
ASCII
INSTR
LENGTH
REGEXP_INSTR
ADD_MONTHS
CURRENT_(DATE|TIMESTAMP)
DBTIMEZONE
EXTRACT
FROM_TZ
(LAST|NEXT)_DAY
LOCALTIMESTAMP
MONTHS_BETWEEN
NEW_TIME
NUMTO(DS|YM)INTERVAL
ROUND
SESSIONTIMEZONE
SYS_EXTRACT_UTC
SYS(DATE|TIMESTAMP)
TO_CHAR
TO_(DS|YM)INTERVAL
TO_TIMESTAMP(_TZ)?
TRUNC
TZ_OFFSET
GREATEST
LEAST
ASCIISTR
BIN_TO_NUM
CAST
CHARTOROWID
(DE)?COMPOSE
CONVERT
HEXTORAW
NUMTO(DS|YM)INTERVAL
RAWTON?HEX
ROWIDTON?CHAR
SCN_TO_TIMESTAMP
TIMESTAMP_TO_SCN
TO_BINARY_(DOUBLE|FLOAT)
TO_N?(CHAR|CLOB)
TO_DATE
TO_(DS|YM)INTERVAL
TO_LOB
TO_(MULTI|SINGLE)_BYTE
TO_NUMBER
TRANSLATE
UNISTR
BFILENAME
EMPTY_(B|C)LOB
CARDINALITY
COLLECT
POWERMULTISET(_BY_CARDINALITY)?
SYS_CONNECT_BY_PATH
CLUSTER_(ID|PROBABILITY|SET)
FEATURE_(ID|SET|VALUE)
PREDICTION
PREDICTION_(COST|DETAILS|PROBABILITY|SET)
(APPEND|INSERT)CHILDXML
(DELETE|UPDATE)XML
DEPTH
EXISTSNODE
EXTRACT(VALUE)?
INSERTXMLBEFORE
PATH
SYS_DBURIGEN
SYS_XML(AGG|GEN)
XML(AGG|CDATA|COLATTVAL|COMMENT|CONCAT|ELEMENT|FOREST|PARSE|PI|QUERY|ROOT|SEQUENCE|SERIALIZE|TABLE|TRANSFORM)
DECODE
DUMP
ORA_HASH
VSIZE
COALESCE
LNNVL
NULLIF
NVL2?
SYS_CONTEXT
SYS_GUID
SYS_TYPEID
UID
USER
USERENV
AVG
CORR(_(S|K))?
COUNT
COVAR_(POP|SAMP)
CUME_DIST
(DENSE|PERCENT)_RANK
FIRST|LAST
GROUP_ID
GROUPING(_ID)?
MAX|MIN
MEDIAN
PERCENTILE_(CONT|DISC)
RANK
REGR_(SLOPE|INTERCEPT|COUNT|R2|AVGX|AVGY|SXX|SYY|SXY)
STATS_((BINOMIAL|F|KS|MW|WSR)_TEST|CROSSTAB|MODE|ONE_WAY_ANOVA|T_TEST_(ONE|PAIRED|INDEPU?))
STDDEV|VARIANCE
(STDDEV|VAR)_(POP|SAMP)
SUM
AVG
CORR
COVAR_(POP|SAMP)
COUNT
CUME_DIST
(DENSE|PERCENT)_RANK
(FIRST|LAST)(_VALUE)?
LAG
LEAD
MAX|MIN
NTILE
PERCENTILE_(CONT|DISC)
RANK
RATIO_TO_REPORT
REGR_(SLOPE|INTERCEPT|COUNT|R2|AVGX|AVGY|SXX|SYY|SXY)
ROW_NUMBER
STDDEV|VARIANCE
(STDDEV|VAR)_(POP|SAMP)
SUM
DEREF
MAKE_REF
REF
REFTOHEX
VALUE
CV
ITERATION_NUMBER
PRESENT(NN)?V
PREVIOUS
ADD
ALL
ALTER
AND
ANY
AS
ASC
BETWEEN
BY
CASE
CHECK
CREATE
CROSS
CURRENT
DECIMAL
DEFAULT
DELETE
DISTINCT
DROP
ELSE
END
FLOAT
FOR
FROM
FULL
GRANT
GROUP
HAVING
IMMEDIATE
INNER
INSERT
INTEGER
INTERSECT
INTO
IN
IS
JOIN
LEFT
LEVEL
LIKE
NATURAL
NOT
OF
ON
OPTION
ORDER
OR
OUTER
PRIOR
PRIVILEGES
PUBLIC
REVOKE
RIGHT
ROWS
SELECT
SESSION
SET
SIZE
SMALLINT
TABLE
THEN
TO
UNION
UNIQUE
UPDATE
USING
VALUES
VIEW
WHEN
WITH
ACCESS
AUDIT
CLUSTER
COMMENT
COMPRESS
CONNECT[ \t]+BY
CUBE
EXCLUSIVE
EXISTS
FILE
GROUPING[ \t]+SETS
IDENTIFIED
INCREMENT
INDEX
INITIAL
LOCK
MAXEXTENTS
MINUS
MLSLABEL
MODE
MODIFY
NOAUDIT
NOCOMPRESS
NOCYCLE
NOWAIT
OFFLINE
ONLINE
PCTFREE
RENAME
RESOURCE
ROLLUP
ROW
ROWNUM
SHARE
SIBLINGS
START[ \t]+WITH
SUCCESSFUL
SYNONYM
TRIGGER
VALIDATE
WHERE
^[ \t]*
ALTER[ \t]+(CLUSTER|DATABASE|DIMENSION|DISKGROUP|FUNCTION|INDEX(TYPE)?|JAVA|MATERIALIZED[ \t]+VIEW([ \t]+LOG)?|OPERATOR|OUTLINE|PACKAGE|PROCEDURE|PROFILE|RESOURCE[ \t]+COST|ROLE|ROLLBACK[ \t]+SEGMENT|SEQUENCE|SESSION|SYSTEM|TABLE(SPACE)?|TRIGGER|TYPE|USER|VIEW)
ANALYZE
(DIS)?ASSOCIATE[ \t]+STATISTICS
CALL
COMMIT([ \t]+WORK)?
CREATE[ \t]+(CLUSTER|CONTEXT|CONTROLFILE|DATABASE([ \t]+LINK)?|DIMENSION|DIRECTORY|DISKGROUP|FUNCTION|INDEX(TYPE)?|JAVA|LIBRARY|MATERIALIZED[ \t]+VIEW([ \t]+LOG)?|OPERATOR|OUTLINE|PACKAGE([ \t]+BODY)?|S?PFILE|PROCEDURE|PROFILE|RESTORE[ \t]+POINT|ROLE|ROLLBACK[ \t]+SEGMENT|SCHEMA|SEQUENCE|SYNONYM|TABLE(SPACE)?|TRIGGER|TYPE([ \t]+BODY)?|USER|VIEW)
DROP[ \t]+(CLUSTER|CONTEXT|DATABASE([ \t]+LINK)?|DIMENSION|DIRECTORY|DISKGROUP|FUNCTION|INDEX(TYPE)?|JAVA|LIBRARY|MATERIALIZED[ \t]+VIEW([ \t]+LOG)?|OPERATOR|OUTLINE|PACKAGE|PROCEDURE|PROFILE|RESTORE[ \t]+POINT|ROLE|ROLLBACK[ \t]+SEGMENT|SEQUENCE|SYNONYM|TABLE(SPACE)?|TRIGGER|TYPE([ \t]+BODY)?|USER|VIEW)
EXPLAIN[ \t]+PLAN
FLASHBACK[ \t]+(DATABASE|TABLE)
LOCK[ \t]+TABLE
MERGE
PURGE
ROLLBACK
SAVEPOINT
SET[ \t]+CONSTRAINTS?
SET[ \t]+ROLE
SET[ \t]+TRANSACTION
TRUNCATE
CONNECT_BY_ROOT
MULTISET[ \t]+(EXCEPT|INTERSECT|UNION)
SOME
IS[ \t]+(NOT[ \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