Skip to content

Instantly share code, notes, and snippets.

@VaskillerDev
Last active September 22, 2021 20:41
Show Gist options
  • Save VaskillerDev/6ae6aa7997392733e9082a532205ed21 to your computer and use it in GitHub Desktop.
Save VaskillerDev/6ae6aa7997392733e9082a532205ed21 to your computer and use it in GitHub Desktop.
SQL-92 reserved words.rs
// Database Language SQL (SQL-92)
// A
pub const ABSOLUTE : &str = "ABSOLUTE";
pub const ACTION : &str = "ACTION";
pub const ADD : &str = "ADD";
pub const ALL : &str = "ALL";
pub const ALLOCATE : &str = "ALLOCATE";
pub const ALTER : &str = "ALTER";
pub const AND : &str = "AND";
pub const ANY : &str = "ANY";
pub const ARE : &str = "ARE";
pub const AS : &str = "AS";
pub const ASC : &str = "ASC";
pub const ASSERTION : &str = "ASSERTION";
pub const AT : &str = "AT";
pub const AUTHORIZATION : &str = "AUTHORIZATION";
pub const AVG : &str = "AVG";
// B
pub const BEGIN : &str = "BEGIN";
pub const BETWEEN : &str = "BETWEEN";
pub const BIT : &str = "BIT";
pub const BIT_LENGTH : &str = "BIT_LENGTH";
pub const BOTH : &str = "BOTH";
pub const BY : &str = "BY";
// C
pub const CASCADE : &str = "CASCADE";
pub const CASCADED : &str = "CASCADED";
pub const CASE : &str = "CASE";
pub const CAST : &str = "CAST";
pub const CATALOG : &str = "CATALOG";
pub const CHAR : &str = "CHAR";
pub const CHARACTER : &str = "CHARACTER";
pub const CHARACTER_LENGTH : &str = "CHARACTER_LENGTH";
pub const CHAR_LENGTH : &str = "CHAR_LENGTH";
pub const CHECK : &str = "CHECK";
pub const CLOSE : &str = "CLOSE";
pub const COALESCE : &str = "COALESCE";
pub const COLLATE : &str = "COLLATE";
pub const COLLATION : &str = "COLLATION";
pub const COLUMN : &str = "COLUMN";
pub const COMMIT : &str = "COMMIT";
pub const CONNECT : &str = "CONNECT";
pub const CONNECTION : &str = "CONNECTION";
pub const CONSTRAINT : &str = "CONSTRAINT";
pub const CONSTRAINTS : &str = "CONSTRAINTS";
pub const CONTINUE : &str = "CONTINUE";
pub const CONVERT : &str = "CONVERT";
pub const CORRESPONDING : &str = "CORRESPONDING";
pub const CREATE : &str = "CREATE";
pub const CROSS : &str = "CROSS";
pub const CURRENT : &str = "CURRENT";
pub const CURRENT_DATE : &str = "CURRENT_DATE";
pub const CURRENT_TIME : &str = "CURRENT_TIME";
pub const CURRENT_TIMESTAMP : &str = "CURRENT_TIMESTAMP";
pub const CURRENT_USER : &str = "CURRENT_USER";
pub const CURSOR : &str = "CURSOR";
// D
pub const DATE : &str = "DATE";
pub const DAY : &str = "DAY";
pub const DEALLOCATE : &str = "DEALLOCATE";
pub const DEC : &str = "DEC";
pub const DECIMAL : &str = "DECIMAL";
pub const DECLARE : &str = "DECLARE";
pub const DEFAULT : &str = "DEFAULT";
pub const DEFERRABLE : &str = "DEFERRABLE";
pub const DEFERRED : &str = "DEFERRED";
pub const DELETE : &str = "DELETE";
pub const DESC : &str = "DESC";
pub const DESCRIBE : &str = "DESCRIBE";
pub const DESCRIPTOR : &str = "DESCRIPTOR";
pub const DIAGNOSTICS : &str = "DIAGNOSTICS";
pub const DISCONNECT : &str = "DISCONNECT";
pub const DISTINCT : &str = "DISTINCT";
pub const DOMAIN : &str = "DOMAIN";
pub const DOUBLE : &str = "DOUBLE";
pub const DROP : &str = "DROP";
// E
pub const ELSE : &str = "ELSE";
pub const END : &str = "END";
pub const END_EXEC : &str = "END-EXEC";
pub const ESCAPE : &str = "ESCAPE";
pub const EXCEPT : &str = "EXCEPT";
pub const EXCEPTION : &str = "EXCEPTION";
pub const EXEC : &str = "EXEC";
pub const EXECUTE : &str = "EXECUTE";
pub const EXISTS : &str = "EXISTS";
pub const EXTERNAL : &str = "EXTERNAL";
pub const EXTRACT : &str = "EXTRACT";
// F
pub const FALSE : &str = "FALSE";
pub const FETCH : &str = "FETCH";
pub const FIRST : &str = "FIRST";
pub const FLOAT : &str = "FLOAT";
pub const FOR : &str = "FOR";
pub const FOREIGN : &str = "FOREIGN";
pub const FOUND : &str = "FOUND";
pub const FROM : &str = "FROM";
pub const FULL : &str = "FULL";
// G
pub const GET : &str = "GET";
pub const GLOBAL : &str = "GLOBAL";
pub const GO : &str = "GO";
pub const GOTO : &str = "GOTO";
pub const GRANT : &str = "GRANT";
pub const GROUP : &str = "GROUP";
// H
pub const HAVING : &str = "HAVING";
pub const HOUR : &str = "HOUR";
// I
pub const IDENTITY : &str = "IDENTITY";
pub const IMMEDIATE : &str = "IMMEDIATE";
pub const IN : &str = "IN";
pub const INDICATOR : &str = "INDICATOR";
pub const INITIALLY : &str = "INITIALLY";
pub const INNER : &str = "INNER";
pub const INPUT : &str = "INPUT";
pub const INSENSITIVE : &str = "INSENSITIVE";
pub const INSERT : &str = "INSERT";
pub const INT : &str = "INT";
pub const INTEGER : &str = "INTEGER";
pub const INTERSECT : &str = "INTERSECT";
pub const INTERVAL : &str = "INTERVAL";
pub const INTO : &str = "INTO";
pub const IS : &str = "IS";
pub const ISOLATION : &str = "ISOLATION";
// J
pub const JOIN : &str = "JOIN";
// K
pub const KEY : &str = "KEY ";
// L
pub const LANGUAGE : &str = "LANGUAGE";
pub const LAST : &str = "LAST";
pub const LEADING : &str = "LEADING";
pub const LEFT : &str = "LEFT";
pub const LEVEL : &str = "LEVEL";
pub const LIKE : &str = "LIKE";
pub const LOCAL : &str = "LOCAL";
pub const LOWER : &str = "LOWER";
// M
pub const MATCH : &str = "MATCH";
pub const MAX : &str = "MAX";
pub const MIN : &str = "MIN";
pub const MINUTE : &str = "MINUTE";
pub const MODULE : &str = "MODULE";
pub const MONTH : &str = "MONTH";
// N
pub const NAMES : &str = "NAMES";
pub const NATIONAL : &str = "NATIONAL";
pub const NATURAL : &str = "NATURAL";
pub const NCHAR : &str = "NCHAR";
pub const NEXT : &str = "NEXT";
pub const NO : &str = "NO";
pub const NOT : &str = "NOT";
pub const NULL : &str = "NULL";
pub const NULLIF : &str = "NULLIF";
pub const NUMERIC : &str = "NUMERIC";
// O
pub const OCTET_LENGTH : &str = "OCTET_LENGTH";
pub const OF : &str = "OF";
pub const ON : &str = "ON";
pub const ONLY : &str = "ONLY";
pub const OPEN : &str = "OPEN";
pub const OPTION : &str = "OPTION";
pub const OR : &str = "OR";
pub const ORDER : &str = "ORDER";
pub const OUTER : &str = "OUTER";
pub const OUTPUT : &str = "OUTPUT";
pub const OVERLAPS : &str = "OVERLAPS";
// P
pub const PAD : &str = "PAD";
pub const PARTIAL : &str = "PARTIAL";
pub const POSITION : &str = "POSITION";
pub const PRECISION : &str = "PRECISION";
pub const PREPARE : &str = "PREPARE";
pub const PRESERVE : &str = "PRESERVE";
pub const PRIMARY : &str = "PRIMARY";
pub const PRIOR : &str = "PRIOR";
pub const PRIVILEGES : &str = "PRIVILEGES";
pub const PROCEDURE : &str = "PROCEDURE";
pub const PUBLIC : &str = "PUBLIC";
// R
pub const READ : &str = "READ";
pub const REAL : &str = "REAL";
pub const REFERENCES : &str = "REFERENCES";
pub const RELATIVE : &str = "RELATIVE";
pub const RESTRICT : &str = "RESTRICT";
pub const REVOKE : &str = "REVOKE";
pub const RIGHT : &str = "RIGHT";
pub const ROLLBACK : &str = "ROLLBACK";
pub const ROWS : &str = "ROWS";
// S
pub const SCHEMA : &str = "SCHEMA";
pub const SCROLL : &str = "SCROLL";
pub const SECOND : &str = "SECOND";
pub const SECTION : &str = "SECTION";
pub const SELECT : &str = "SELECT";
pub const SESSION : &str = "SESSION";
pub const SESSION_USER : &str = "SESSION_USER";
pub const SET : &str = "SET";
pub const SIZE : &str = "SIZE";
pub const SMALLINT : &str = "SMALLINT";
pub const SOME : &str = "SOME";
pub const SPACE : &str = "SPACE";
pub const SQL : &str = "SQL";
pub const SQLCODE : &str = "SQLCODE";
pub const SQLERROR : &str = "SQLERROR";
pub const SQLSTATE : &str = "SQLSTATE";
pub const SUBSTRING : &str = "SUBSTRING";
pub const SUM : &str = "SUM";
pub const SYSTEM_USER : &str = "SYSTEM_USER";
// T
pub const TABLE : &str = "TABLE";
pub const TEMPORARY : &str = "TEMPORARY";
pub const THEN : &str = "THEN";
pub const TIME : &str = "TIME";
pub const TIMESTAMP : &str = "TIMESTAMP";
pub const TIMEZONE_HOUR : &str = "TIMEZONE_HOUR";
pub const TIMEZONE_MINUTE : &str = "TIMEZONE_MINUTE";
pub const TO : &str = "TO";
pub const TRAILING : &str = "TRAILING";
pub const TRANSACTION : &str = "V";
pub const TRANSLATE : &str = "TRANSLATE";
pub const TRANSLATION : &str = "TRANSLATION";
pub const TRIM : &str = "TRIM";
pub const TRUE : &str = "TRUE";
// U
pub const UNION : &str = "UNION";
pub const UNIQUE : &str = "UNIQUE";
pub const UNKNOWN : &str = "UNKNOWN";
pub const UPDATE : &str = "UPDATE";
pub const UPPER : &str = "UPPER";
pub const USAGE : &str = "USAGE";
pub const USER : &str = "USER";
pub const USING : &str = "USING";
// V
pub const VALUE : &str = "VALUE";
pub const VALUES : &str = "VALUES";
pub const VARCHAR : &str = "VARCHAR";
pub const VARYING : &str = "VARYING";
pub const VIEW : &str = "VIEW";
// W
pub const WHEN : &str = "WHEN";
pub const WHENEVER : &str = "WHENEVER";
pub const WHERE : &str = "WHERE";
pub const WITH : &str = "WITH";
pub const WORK : &str = "WORK";
pub const WRITE : &str = "WRITE";
// Y
pub const YEAR : &str = "YEAR ";
// Z
pub const ZONE : &str = "ZONE";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment