123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016 |
- <?php
- /* vim: set expandtab sw=4 ts=4 sts=4: */
- /**
- * SQL Parser Matching Data
- *
- * Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
- * http://www.orbis-terrarum.net/?l=people.robbat2
- *
- * This data is used by the SQL Parser to recognize keywords
- *
- * It has been extracted from the lex.h file in the MySQL BK tree
- * (around 4.0.2) as well as the MySQL documentation.
- *
- * It's easier to use only uppercase for proper sorting. In case of
- * doubt, use the test case to verify.
- *
- * @package PhpMyAdmin
- */
- if (! defined('PHPMYADMIN')) {
- exit;
- }
- if (! isset($GLOBALS['sql_delimiter'])) {
- $GLOBALS['sql_delimiter'] = ';';
- }
- /**
- * @global array MySQL function names
- */
- $PMA_SQPdata_function_name = array (
- 'ABS',
- 'ACOS',
- 'ADDDATE',
- 'ADDTIME',
- 'AES_DECRYPT',
- 'AES_ENCRYPT',
- 'AREA', // polygon-property-functions.html
- 'ASBINARY',
- 'ASCII',
- 'ASIN',
- 'ASTEXT',
- 'ATAN',
- 'ATAN2',
- 'AVG',
- 'BDMPOLYFROMTEXT',
- 'BDMPOLYFROMWKB',
- 'BDPOLYFROMTEXT',
- 'BDPOLYFROMWKB',
- 'BENCHMARK',
- 'BIN',
- 'BIT_AND',
- 'BIT_COUNT',
- 'BIT_LENGTH',
- 'BIT_OR',
- 'BIT_XOR', // group-by-functions.html
- 'BOUNDARY', // general-geometry-property-functions.html
- 'BUFFER',
- 'CAST',
- 'CEIL',
- 'CEILING',
- 'CENTROID', // multipolygon-property-functions.html
- 'CHAR', // string-functions.html
- 'CHARACTER_LENGTH',
- 'CHARSET', // information-functions.html
- 'CHAR_LENGTH',
- 'COALESCE',
- 'COERCIBILITY', // information-functions.html
- 'COLLATION', // information-functions.html
- 'COMPRESS', // string-functions.html
- 'CONCAT',
- 'CONCAT_WS',
- 'CONNECTION_ID',
- 'CONTAINS',
- 'CONV',
- 'CONVERT',
- 'CONVERT_TZ',
- 'CONVEXHULL',
- 'COS',
- 'COT',
- 'COUNT',
- 'CRC32', // mathematical-functions.html
- 'CROSSES',
- 'CURDATE',
- 'CURRENT_DATE',
- 'CURRENT_TIME',
- 'CURRENT_TIMESTAMP',
- 'CURRENT_USER',
- 'CURTIME',
- 'DATABASE',
- 'DATE', // date-and-time-functions.html
- 'DATEDIFF', // date-and-time-functions.html
- 'DATE_ADD',
- 'DATE_DIFF',
- 'DATE_FORMAT',
- 'DATE_SUB',
- 'DAY',
- 'DAYNAME',
- 'DAYOFMONTH',
- 'DAYOFWEEK',
- 'DAYOFYEAR',
- 'DECODE',
- 'DEFAULT', // miscellaneous-functions.html
- 'DEGREES',
- 'DES_DECRYPT',
- 'DES_ENCRYPT',
- 'DIFFERENCE',
- 'DIMENSION', // general-geometry-property-functions.html
- 'DISJOINT',
- 'DISTANCE',
- 'ELT',
- 'ENCODE',
- 'ENCRYPT',
- 'ENDPOINT', // linestring-property-functions.html
- 'ENVELOPE', // general-geometry-property-functions.html
- 'EQUALS',
- 'EXP',
- 'EXPORT_SET',
- 'EXTERIORRING', // polygon-property-functions.html
- 'EXTRACT',
- 'EXTRACTVALUE', // xml-functions.html
- 'FIELD',
- 'FIND_IN_SET',
- 'FLOOR',
- 'FORMAT',
- 'FOUND_ROWS',
- 'FROM_DAYS',
- 'FROM_UNIXTIME',
- 'GEOMCOLLFROMTEXT',
- 'GEOMCOLLFROMWKB',
- 'GEOMETRYCOLLECTION',
- 'GEOMETRYCOLLECTIONFROMTEXT',
- 'GEOMETRYCOLLECTIONFROMWKB',
- 'GEOMETRYFROMTEXT',
- 'GEOMETRYFROMWKB',
- 'GEOMETRYN', // geometrycollection-property-functions.html
- 'GEOMETRYTYPE', // general-geometry-property-functions.html
- 'GEOMFROMTEXT',
- 'GEOMFROMWKB',
- 'GET_FORMAT',
- 'GET_LOCK',
- 'GLENGTH', // linestring-property-functions.html
- 'GREATEST',
- 'GROUP_CONCAT',
- 'GROUP_UNIQUE_USERS',
- 'HEX',
- 'HOUR',
- 'IF', //control-flow-functions.html
- 'IFNULL',
- 'INET_ATON',
- 'INET_NTOA',
- 'INSERT', // string-functions.html
- 'INSTR',
- 'INTERIORRINGN', // polygon-property-functions.html
- 'INTERSECTION',
- 'INTERSECTS',
- 'INTERVAL',
- 'ISCLOSED', // multilinestring-property-functions.html
- 'ISEMPTY', // general-geometry-property-functions.html
- 'ISNULL',
- 'ISRING', // linestring-property-functions.html
- 'ISSIMPLE', // general-geometry-property-functions.html
- 'IS_FREE_LOCK',
- 'IS_USED_LOCK', // miscellaneous-functions.html
- 'LAST_DAY',
- 'LAST_INSERT_ID',
- 'LCASE',
- 'LEAST',
- 'LEFT',
- 'LENGTH',
- 'LINEFROMTEXT',
- 'LINEFROMWKB',
- 'LINESTRING',
- 'LINESTRINGFROMTEXT',
- 'LINESTRINGFROMWKB',
- 'LN',
- 'LOAD_FILE',
- 'LOCALTIME',
- 'LOCALTIMESTAMP',
- 'LOCATE',
- 'LOG',
- 'LOG10',
- 'LOG2',
- 'LOWER',
- 'LPAD',
- 'LTRIM',
- 'MAKEDATE',
- 'MAKETIME',
- 'MAKE_SET',
- 'MASTER_POS_WAIT',
- 'MAX',
- 'MBRCONTAINS',
- 'MBRDISJOINT',
- 'MBREQUAL',
- 'MBRINTERSECTS',
- 'MBROVERLAPS',
- 'MBRTOUCHES',
- 'MBRWITHIN',
- 'MD5',
- 'MICROSECOND',
- 'MID',
- 'MIN',
- 'MINUTE',
- 'MLINEFROMTEXT',
- 'MLINEFROMWKB',
- 'MOD',
- 'MONTH',
- 'MONTHNAME',
- 'MPOINTFROMTEXT',
- 'MPOINTFROMWKB',
- 'MPOLYFROMTEXT',
- 'MPOLYFROMWKB',
- 'MULTILINESTRING',
- 'MULTILINESTRINGFROMTEXT',
- 'MULTILINESTRINGFROMWKB',
- 'MULTIPOINT',
- 'MULTIPOINTFROMTEXT',
- 'MULTIPOINTFROMWKB',
- 'MULTIPOLYGON',
- 'MULTIPOLYGONFROMTEXT',
- 'MULTIPOLYGONFROMWKB',
- 'NAME_CONST', // NAME_CONST()
- 'NOW',
- 'NULLIF',
- 'NUMGEOMETRIES', // geometrycollection-property-functions.html
- 'NUMINTERIORRINGS', // polygon-property-functions.html
- 'NUMPOINTS', // linestring-property-functions.html
- 'OCT',
- 'OCTET_LENGTH',
- 'OLD_PASSWORD',
- 'ORD',
- 'OVERLAPS',
- 'PASSWORD',
- 'PERIOD_ADD',
- 'PERIOD_DIFF',
- 'PI',
- 'POINT',
- 'POINTFROMTEXT',
- 'POINTFROMWKB',
- 'POINTN', // inestring-property-functions.html
- 'POINTONSURFACE', // multipolygon-property-functions.html
- 'POLYFROMTEXT',
- 'POLYFROMWKB',
- 'POLYGON',
- 'POLYGONFROMTEXT',
- 'POLYGONFROMWKB',
- 'POSITION',
- 'POW',
- 'POWER',
- 'QUARTER',
- 'QUOTE',
- 'RADIANS',
- 'RAND',
- 'RELATED',
- 'RELEASE_LOCK',
- 'REPEAT',
- 'REPLACE', // string-functions.html
- 'REVERSE',
- 'RIGHT',
- 'ROUND',
- 'ROW_COUNT', // information-functions.html
- 'RPAD',
- 'RTRIM',
- 'SCHEMA', // information-functions.html
- 'SECOND',
- 'SEC_TO_TIME',
- 'SESSION_USER',
- 'SHA',
- 'SHA1',
- 'SIGN',
- 'SIN',
- 'SLEEP', // miscellaneous-functions.html
- 'SOUNDEX',
- 'SPACE',
- 'SQRT',
- 'SRID', // general-geometry-property-functions.html
- 'STARTPOINT', // linestring-property-functions.html
- 'STD',
- 'STDDEV',
- 'STDDEV_POP', // group-by-functions.html
- 'STDDEV_SAMP', // group-by-functions.html
- 'STRCMP',
- 'STR_TO_DATE',
- 'SUBDATE',
- 'SUBSTR',
- 'SUBSTRING',
- 'SUBSTRING_INDEX',
- 'SUBTIME',
- 'SUM',
- 'SYMDIFFERENCE',
- 'SYSDATE',
- 'SYSTEM_USER',
- 'TAN',
- 'TIME',
- 'TIMEDIFF',
- 'TIMESTAMP',
- 'TIMESTAMPADD',
- 'TIMESTAMPDIFF',
- 'TIME_FORMAT',
- 'TIME_TO_SEC',
- 'TOUCHES',
- 'TO_DAYS',
- 'TRIM',
- 'TRUNCATE', // mathematical-functions.html
- 'UCASE',
- 'UNCOMPRESS', // string-functions.html
- 'UNCOMPRESSED_LENGTH', // string-functions.html
- 'UNHEX', // string-functions.html
- 'UNIQUE_USERS',
- 'UNIX_TIMESTAMP',
- 'UPDATEXML', // xml-functions.html
- 'UPPER',
- 'USER',
- 'UTC_DATE',
- 'UTC_TIME',
- 'UTC_TIMESTAMP',
- 'UUID', // miscellaneous-functions.html
- 'VARIANCE', // group-by-functions.html
- 'VAR_POP', // group-by-functions.html
- 'VAR_SAMP', // group-by-functions.html
- 'VERSION',
- 'WEEK',
- 'WEEKDAY',
- 'WEEKOFYEAR',
- 'WITHIN',
- 'X', // point-property-functions.html
- 'Y', // point-property-functions.html
- 'YEAR',
- 'YEARWEEK'
- );
- /**
- * @global array MySQL attributes
- */
- $PMA_SQPdata_column_attrib = array (
- 'ARCHIVE', // Engine
- 'ASCII',
- 'AUTO_INCREMENT',
- 'BDB', // Engine
- 'BERKELEYDB', // Engine alias BDB
- 'BINARY',
- 'BLACKHOLE', // Engine
- 'CSV', // Engine
- 'DEFAULT',
- 'EXAMPLE', // Engine
- 'FEDERATED', // Engine
- 'HEAP', // Engine
- 'INNOBASE', // Engine alias InnoDB
- 'INNODB', // Engine InnoDB
- 'ISAM', // Engine
- 'MARIA', // Engine
- 'MEMORY', // Engine alias HEAP, but preferred
- 'MERGE', // Engine
- 'MRG_ISAM', // Engine
- 'MRG_MYISAM', // Engine alias MERGE
- 'MYISAM', // Engine MyISAM
- 'NATIONAL',
- 'NDB', // Engine alias NDBCLUSTER
- 'NDBCLUSTER', // Engine
- 'PRECISION',
- 'UNDEFINED',
- 'UNICODE',
- 'UNSIGNED',
- 'VARYING',
- 'ZEROFILL'
- );
- /**
- * words that are reserved by MySQL and may not be used as identifiers without
- * quotes
- *
- * @see http://dev.mysql.com/doc/refman/5.5/en/reserved-words.html
- *
- * @global array MySQL reserved words
- */
- $PMA_SQPdata_reserved_word = array (
- 'ACCESSIBLE', // 5.1
- 'ACTION',
- 'ADD',
- 'AFTER',
- 'AGAINST',
- 'AGGREGATE',
- 'ALGORITHM',
- 'ALL',
- 'ALTER',
- 'ANALYSE',
- 'ANALYZE',
- 'AND',
- 'AS',
- 'ASC',
- 'AUTOCOMMIT',
- 'AUTO_INCREMENT',
- 'AVG_ROW_LENGTH',
- 'BACKUP',
- 'BEGIN',
- 'BETWEEN',
- 'BINLOG',
- 'BOTH',
- 'BY',
- 'CASCADE',
- 'CASE',
- 'CHANGE',
- 'CHANGED',
- 'CHARSET',
- 'CHECK',
- 'CHECKSUM',
- 'COLLATE',
- 'COLLATION',
- 'COLUMN',
- 'COLUMNS',
- 'COMMENT',
- 'COMMIT',
- 'COMMITTED',
- 'COMPRESSED',
- 'CONCURRENT',
- 'CONSTRAINT',
- 'CONTAINS',
- 'CONVERT',
- 'CREATE',
- 'CROSS',
- 'CURRENT_TIMESTAMP',
- 'DATABASE',
- 'DATABASES',
- 'DAY',
- 'DAY_HOUR',
- 'DAY_MINUTE',
- 'DAY_SECOND',
- 'DECLARE',
- 'DEFINER',
- 'DELAYED',
- 'DELAY_KEY_WRITE',
- 'DELETE',
- 'DESC',
- 'DESCRIBE',
- 'DETERMINISTIC',
- 'DISTINCT',
- 'DISTINCTROW',
- 'DIV',
- 'DO',
- 'DROP',
- 'DUMPFILE',
- 'DUPLICATE',
- 'DYNAMIC',
- 'ELSE',
- 'ENCLOSED',
- 'END',
- 'ENGINE',
- 'ENGINES',
- 'ESCAPE',
- 'ESCAPED',
- 'EVENTS',
- 'EXECUTE',
- 'EXISTS',
- 'EXPLAIN',
- 'EXTENDED',
- 'FALSE',
- 'FAST',
- 'FIELDS',
- 'FILE',
- 'FIRST',
- 'FIXED',
- 'FLUSH',
- 'FOR',
- 'FORCE',
- 'FOREIGN',
- 'FROM',
- 'FULL',
- 'FULLTEXT',
- 'FUNCTION',
- 'GEMINI',
- 'GEMINI_SPIN_RETRIES',
- 'GENERAL',
- 'GLOBAL',
- 'GRANT',
- 'GRANTS',
- 'GROUP',
- 'HAVING',
- 'HEAP',
- 'HIGH_PRIORITY',
- 'HOSTS',
- 'HOUR',
- 'HOUR_MINUTE',
- 'HOUR_SECOND',
- 'IDENTIFIED',
- 'IF',
- 'IGNORE',
- 'IGNORE_SERVER_IDS',
- 'IN',
- 'INDEX',
- 'INDEXES',
- 'INFILE',
- 'INNER',
- 'INSERT',
- 'INSERT_ID',
- 'INSERT_METHOD',
- 'INTERVAL',
- 'INTO',
- 'INVOKER',
- 'IS',
- 'ISOLATION',
- 'JOIN',
- 'KEY',
- 'KEYS',
- 'KILL',
- 'LAST_INSERT_ID',
- 'LEADING',
- 'LEFT',
- 'LIKE',
- 'LIMIT',
- 'LINEAR', // 5.1
- 'LINES',
- 'LOAD',
- 'LOCAL',
- 'LOCK',
- 'LOCKS',
- 'LOGS',
- 'LOW_PRIORITY',
- 'MARIA', // 5.1 ?
- 'MASTER_CONNECT_RETRY',
- 'MASTER_HEARTBEAT_PERIOD',
- 'MASTER_HOST',
- 'MASTER_LOG_FILE',
- 'MASTER_LOG_POS',
- 'MASTER_PASSWORD',
- 'MASTER_PORT',
- 'MASTER_USER',
- 'MATCH',
- 'MAXVALUE',
- 'MAX_CONNECTIONS_PER_HOUR',
- 'MAX_QUERIES_PER_HOUR',
- 'MAX_ROWS',
- 'MAX_UPDATES_PER_HOUR',
- 'MAX_USER_CONNECTIONS',
- 'MEDIUM',
- 'MERGE',
- 'MINUTE',
- 'MINUTE_SECOND',
- 'MIN_ROWS',
- 'MODE',
- 'MODIFY',
- 'MONTH',
- 'MRG_MYISAM',
- 'MYISAM',
- 'NAMES',
- 'NATURAL',
- // 'NO' is not allowed in SQL-99 but is allowed in MySQL
- //'NO',
- 'NOT',
- 'NULL',
- 'OFFSET',
- 'ON',
- 'OPEN',
- 'OPTIMIZE',
- 'OPTION',
- 'OPTIONALLY',
- 'OR',
- 'ORDER',
- 'OUTER',
- 'OUTFILE',
- 'PACK_KEYS',
- 'PAGE', // 5.1-maria ?
- 'PAGE_CHECKSUM', // 5.1
- 'PARTIAL',
- 'PARTITION', // 5.1
- 'PARTITIONS', // 5.1
- 'PASSWORD',
- 'PRIMARY',
- 'PRIVILEGES',
- 'PROCEDURE',
- 'PROCESS',
- 'PROCESSLIST',
- 'PURGE',
- 'QUICK',
- 'RAID0',
- 'RAID_CHUNKS',
- 'RAID_CHUNKSIZE',
- 'RAID_TYPE',
- 'RANGE', // 5.1
- 'READ',
- 'READ_ONLY', // 5.1
- 'READ_WRITE', // 5.1
- 'REFERENCES',
- 'REGEXP',
- 'RELOAD',
- 'RENAME',
- 'REPAIR',
- 'REPEATABLE',
- 'REPLACE',
- 'REPLICATION',
- 'RESET',
- 'RESIGNAL',
- 'RESTORE',
- 'RESTRICT',
- 'RETURN',
- 'RETURNS',
- 'REVOKE',
- 'RIGHT',
- 'RLIKE',
- 'ROLLBACK',
- 'ROW',
- 'ROWS',
- 'ROW_FORMAT',
- 'SECOND',
- 'SECURITY',
- 'SELECT',
- 'SEPARATOR',
- 'SERIALIZABLE',
- 'SESSION',
- 'SHARE',
- 'SHOW',
- 'SHUTDOWN',
- 'SIGNAL',
- 'SLAVE',
- 'SLOW',
- 'SONAME',
- 'SOUNDS', // string-functions.html
- 'SQL',
- 'SQL_AUTO_IS_NULL',
- 'SQL_BIG_RESULT',
- 'SQL_BIG_SELECTS',
- 'SQL_BIG_TABLES',
- 'SQL_BUFFER_RESULT',
- 'SQL_CACHE',
- 'SQL_CALC_FOUND_ROWS',
- 'SQL_LOG_BIN',
- 'SQL_LOG_OFF',
- 'SQL_LOG_UPDATE',
- 'SQL_LOW_PRIORITY_UPDATES',
- 'SQL_MAX_JOIN_SIZE',
- 'SQL_NO_CACHE',
- 'SQL_QUOTE_SHOW_CREATE',
- 'SQL_SAFE_UPDATES',
- 'SQL_SELECT_LIMIT',
- 'SQL_SLAVE_SKIP_COUNTER',
- 'SQL_SMALL_RESULT',
- 'SQL_WARNINGS',
- 'START',
- 'STARTING',
- 'STATUS',
- 'STOP',
- 'STORAGE',
- 'STRAIGHT_JOIN',
- 'STRING',
- 'STRIPED',
- 'SUPER',
- 'TABLE',
- 'TABLES',
- 'TEMPORARY',
- 'TERMINATED',
- 'THEN',
- 'TO',
- 'TRAILING',
- 'TRANSACTIONAL', // 5.1 ?
- 'TRUE',
- 'TRUNCATE',
- 'TYPE',
- 'TYPES',
- 'UNCOMMITTED',
- 'UNION',
- 'UNIQUE',
- 'UNLOCK',
- 'UPDATE',
- 'USAGE',
- 'USE',
- 'USING',
- 'VALUES',
- 'VARIABLES',
- 'VIEW',
- 'WHEN',
- 'WHERE',
- 'WITH',
- 'WORK',
- 'WRITE',
- 'XOR',
- 'YEAR_MONTH'
- );
- /**
- * words forbidden to be used as column or table name without quotes
- * as seen in http://dev.mysql.com/doc/refman/5.6/en/reserved-words.html
- *
- * @global array MySQL forbidden words
- */
- $PMA_SQPdata_forbidden_word = array (
- 'ACCESSIBLE',
- 'ADD',
- 'ALL',
- 'ALTER',
- 'ANALYZE',
- 'AND',
- 'AS',
- 'ASC',
- 'ASENSITIVE',
- 'BEFORE',
- 'BETWEEN',
- 'BIGINT',
- 'BINARY',
- 'BLOB',
- 'BOTH',
- 'BY',
- 'CALL',
- 'CASCADE',
- 'CASE',
- 'CHANGE',
- 'CHAR',
- 'CHARACTER',
- 'CHECK',
- 'COLLATE',
- 'COLUMN',
- 'CONDITION',
- 'CONSTRAINT',
- 'CONTINUE',
- 'CONVERT',
- 'CREATE',
- 'CROSS',
- 'CURRENT_DATE',
- 'CURRENT_TIME',
- 'CURRENT_TIMESTAMP',
- 'CURRENT_USER',
- 'CURSOR',
- 'DATABASE',
- 'DATABASES',
- 'DAY_HOUR',
- 'DAY_MICROSECOND',
- 'DAY_MINUTE',
- 'DAY_SECOND',
- 'DEC',
- 'DECIMAL',
- 'DECLARE',
- 'DEFAULT',
- 'DELAYED',
- 'DELETE',
- 'DESC',
- 'DESCRIBE',
- 'DETERMINISTIC',
- 'DISTINCT',
- 'DISTINCTROW',
- 'DIV',
- 'DOUBLE',
- 'DROP',
- 'DUAL',
- 'EACH',
- 'ELSE',
- 'ELSEIF',
- 'ENCLOSED',
- 'ESCAPED',
- 'EXISTS',
- 'EXIT',
- 'EXPLAIN',
- 'FALSE',
- 'FETCH',
- 'FLOAT',
- 'FLOAT4',
- 'FLOAT8',
- 'FOR',
- 'FORCE',
- 'FOREIGN',
- 'FROM',
- 'FULLTEXT',
- 'GENERAL',
- 'GET',
- 'GRANT',
- 'GROUP',
- 'HAVING',
- 'HIGH_PRIORITY',
- 'HOUR_MICROSECOND',
- 'HOUR_MINUTE',
- 'HOUR_SECOND',
- 'IF',
- 'IGNORE',
- 'IGNORE_SERVER_IDS',
- 'IN',
- 'INDEX',
- 'INFILE',
- 'INNER',
- 'INOUT',
- 'INSENSITIVE',
- 'INSERT',
- 'INT',
- 'INT1',
- 'INT2',
- 'INT3',
- 'INT4',
- 'INT8',
- 'INTEGER',
- 'INTERVAL',
- 'INTO',
- 'IO_AFTER_GTIDS',
- 'IO_BEFORE_GTIDS',
- 'IS',
- 'ITERATE',
- 'JOIN',
- 'KEY',
- 'KEYS',
- 'KILL',
- 'LEADING',
- 'LEAVE',
- 'LEFT',
- 'LIKE',
- 'LIMIT',
- 'LINEAR',
- 'LINES',
- 'LOAD',
- 'LOCALTIME',
- 'LOCALTIMESTAMP',
- 'LOCK',
- 'LONG',
- 'LONGBLOB',
- 'LONGTEXT',
- 'LOOP',
- 'LOW_PRIORITY',
- 'MASTER_BIND',
- 'MASTER_HEARTBEAT_PERIOD',
- 'MASTER_SSL_VERIFY_SERVER_CERT',
- 'MATCH',
- 'MAXVALUE',
- 'MEDIUMBLOB',
- 'MEDIUMINT',
- 'MEDIUMTEXT',
- 'MIDDLEINT',
- 'MINUTE_MICROSECOND',
- 'MINUTE_SECOND',
- 'MOD',
- 'MODIFIES',
- 'NATURAL',
- 'NOT',
- 'NO_WRITE_TO_BINLOG',
- 'NULL',
- 'NUMERIC',
- 'ON',
- 'ONE_SHOT',
- 'OPTIMIZE',
- 'OPTION',
- 'OPTIONALLY',
- 'OR',
- 'ORDER',
- 'OUT',
- 'OUTER',
- 'OUTFILE',
- 'PARTITION',
- 'PRECISION',
- 'PRIMARY',
- 'PROCEDURE',
- 'PURGE',
- 'RANGE',
- 'READ',
- 'READS',
- 'READ_WRITE',
- 'REAL',
- 'REFERENCES',
- 'REGEXP',
- 'RELEASE',
- 'RENAME',
- 'REPEAT',
- 'REPLACE',
- 'REQUIRE',
- 'RESIGNAL',
- 'RESTRICT',
- 'RETURN',
- 'REVOKE',
- 'RIGHT',
- 'RLIKE',
- 'SCHEMA',
- 'SCHEMAS',
- 'SECOND_MICROSECOND',
- 'SELECT',
- 'SENSITIVE',
- 'SEPARATOR',
- 'SET',
- 'SHOW',
- 'SIGNAL',
- 'SLOW',
- 'SMALLINT',
- 'SPATIAL',
- 'SPECIFIC',
- 'SQL',
- 'SQLEXCEPTION',
- 'SQLSTATE',
- 'SQLWARNING',
- 'SQL_AFTER_GTIDS',
- 'SQL_BEFORE_GTIDS',
- 'SQL_BIG_RESULT',
- 'SQL_CALC_FOUND_ROWS',
- 'SQL_SMALL_RESULT',
- 'SSL',
- 'STARTING',
- 'STRAIGHT_JOIN',
- 'TABLE',
- 'TERMINATED',
- 'THEN',
- 'TINYBLOB',
- 'TINYINT',
- 'TINYTEXT',
- 'TO',
- 'TRAILING',
- 'TRIGGER',
- 'TRUE',
- 'UNDO',
- 'UNION',
- 'UNIQUE',
- 'UNLOCK',
- 'UNSIGNED',
- 'UPDATE',
- 'USAGE',
- 'USE',
- 'USING',
- 'UTC_DATE',
- 'UTC_TIME',
- 'UTC_TIMESTAMP',
- 'VALUES',
- 'VARBINARY',
- 'VARCHAR',
- 'VARCHARACTER',
- 'VARYING',
- 'WHEN',
- 'WHERE',
- 'WHILE',
- 'WITH',
- 'WRITE',
- 'XOR',
- 'YEAR_MONTH',
- 'ZEROFILL'
- );
- /**
- * the MySQL column/data types
- *
- * @see http://dev.mysql.com/doc/refman/5.1/en/data-types.html
- * @see http://dev.mysql.com/doc/refman/5.1/en/mysql-spatial-datatypes.html
- *
- * @global array MySQL column types
- */
- $PMA_SQPdata_column_type = array (
- 'BIGINT',
- 'BINARY',
- 'BIT',
- 'BLOB',
- 'BOOL',
- 'BOOLEAN', // numeric-type-overview.html
- 'CHAR',
- 'CHARACTER',
- 'DATE',
- 'DATETIME',
- 'DEC',
- 'DECIMAL',
- 'DOUBLE',
- 'ENUM',
- 'FLOAT',
- 'FLOAT4',
- 'FLOAT8',
- 'GEOMETRY', // spatial
- 'GEOMETRYCOLLECTION', // spatial
- 'INT',
- 'INT1',
- 'INT2',
- 'INT3',
- 'INT4',
- 'INT8',
- 'INTEGER',
- 'LINESTRING', // spatial
- 'LONG',
- 'LONGBLOB',
- 'LONGTEXT',
- 'MEDIUMBLOB',
- 'MEDIUMINT',
- 'MEDIUMTEXT',
- 'MIDDLEINT',
- 'MULTILINESTRING', // spatial
- 'MULTIPOINT', // spatial
- 'MULTIPOLYGON', // spatial
- 'NCHAR',
- 'NUMERIC',
- 'POINT', // spatial
- 'POLYGON', // spatial
- 'REAL',
- 'SERIAL', // alias
- 'SET',
- 'SMALLINT',
- 'TEXT',
- 'TIME',
- 'TIMESTAMP',
- 'TINYBLOB',
- 'TINYINT',
- 'TINYTEXT',
- 'VARBINARY',
- 'VARCHAR',
- 'YEAR'
- );
- /**
- * Documentation links for operators.
- */
- $PMA_SQPdata_operators_docs = array(
- '!=' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_not-equal',
- ),
- '<>' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_not-equal',
- ),
- '!' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_not',
- ),
- '||' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_or',
- ),
- '+' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_plus',
- ),
- '>>' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_right-shift',
- ),
- '-' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_minus',
- ),
- '*' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_times',
- ),
- '&&' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_and',
- ),
- '&' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_bitwise-and',
- ),
- '~' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_bitwise-invert',
- ),
- '|' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_bitwise-or',
- ),
- '^' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_bitwise-xor',
- ),
- //FIXME:duplicated key "="
- '=' => array(
- 'link' => 'assignment-operators',
- 'anchor' => 'operator_assign-equal',
- ),
- ':=' => array(
- 'link' => 'assignment-operators',
- 'anchor' => 'operator_assign-value',
- ),
- '/' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_divide',
- ),
- '<=>' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_equal-to',
- ),
- //FIXME:duplicated key "="
- '=' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_equal',
- ),
- '>=' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_greater-than-or-equal',
- ),
- '>' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_greater-than',
- ),
- '<<' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'operator_left-shift',
- ),
- '<=' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_less-than-or-equal',
- ),
- '<' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_less-than',
- ),
- '%' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_mod',
- )
- );
- /**
- * Documentation links for functions.
- */
- $PMA_SQPdata_functions_docs = array(
- 'ABS' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_abs',
- ),
- 'ACOS' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_acos',
- ),
- 'ADDDATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_adddate',
- ),
- 'ADDTIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_addtime',
- ),
- 'AES_DECRYPT' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_aes_decrypt',
- ),
- 'AES_ENCRYPT' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_aes_encrypt',
- ),
- 'AND' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_and',
- ),
- 'ASCII' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_ascii',
- ),
- 'ASIN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_asin',
- ),
- 'ATAN2' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_atan2',
- ),
- 'ATAN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_atan',
- ),
- 'AVG' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_avg',
- ),
- 'BENCHMARK' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_benchmark',
- ),
- 'BIN' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_bin',
- ),
- 'BINARY' => array(
- 'link' => 'cast-functions',
- 'anchor' => 'operator_binary',
- ),
- 'BIT_AND' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_bit_and',
- ),
- 'BIT_COUNT' => array(
- 'link' => 'bit-functions',
- 'anchor' => 'function_bit_count',
- ),
- 'BIT_LENGTH' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_bit_length',
- ),
- 'BIT_OR' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_bit_or',
- ),
- 'BIT_XOR' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_bit_xor',
- ),
- 'CASE' => array(
- 'link' => 'control-flow-functions',
- 'anchor' => 'operator_case',
- ),
- 'CAST' => array(
- 'link' => 'cast-functions',
- 'anchor' => 'function_cast',
- ),
- 'CEIL' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_ceil',
- ),
- 'CEILING' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_ceiling',
- ),
- 'CHAR_LENGTH' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_char_length',
- ),
- 'CHAR' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_char',
- ),
- 'CHARACTER_LENGTH' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_character_length',
- ),
- 'CHARSET' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_charset',
- ),
- 'COALESCE' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_coalesce',
- ),
- 'COERCIBILITY' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_coercibility',
- ),
- 'COLLATION' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_collation',
- ),
- 'COMPRESS' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_compress',
- ),
- 'CONCAT_WS' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_concat_ws',
- ),
- 'CONCAT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_concat',
- ),
- 'CONNECTION_ID' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_connection_id',
- ),
- 'CONV' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_conv',
- ),
- 'CONVERT_TZ' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_convert_tz',
- ),
- 'Convert' => array(
- 'link' => 'cast-functions',
- 'anchor' => 'function_convert',
- ),
- 'COS' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_cos',
- ),
- 'COT' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_cot',
- ),
- 'COUNT' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_count',
- ),
- 'CRC32' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_crc32',
- ),
- 'CURDATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_curdate',
- ),
- 'CURRENT_DATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_current_date',
- ),
- 'CURRENT_TIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_current_time',
- ),
- 'CURRENT_TIMESTAMP' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_current_timestamp',
- ),
- 'CURRENT_USER' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_current_user',
- ),
- 'CURTIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_curtime',
- ),
- 'DATABASE' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_database',
- ),
- 'DATE_ADD' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_date_add',
- ),
- 'DATE_FORMAT' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_date_format',
- ),
- 'DATE_SUB' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_date_sub',
- ),
- 'DATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_date',
- ),
- 'DATEDIFF' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_datediff',
- ),
- 'DAY' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_day',
- ),
- 'DAYNAME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_dayname',
- ),
- 'DAYOFMONTH' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_dayofmonth',
- ),
- 'DAYOFWEEK' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_dayofweek',
- ),
- 'DAYOFYEAR' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_dayofyear',
- ),
- 'DECLARE' => array('link' => 'declare', 'anchor' => 'declare'),
- 'DECODE' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_decode',
- ),
- 'DEFAULT' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_default',
- ),
- 'DEGREES' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_degrees',
- ),
- 'DES_DECRYPT' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_des_decrypt',
- ),
- 'DES_ENCRYPT' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_des_encrypt',
- ),
- 'DIV' => array(
- 'link' => 'arithmetic-functions',
- 'anchor' => 'operator_div',
- ),
- 'ELT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_elt',
- ),
- 'ENCODE' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_encode',
- ),
- 'ENCRYPT' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_encrypt',
- ),
- 'EXP' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_exp',
- ),
- 'EXPORT_SET' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_export_set',
- ),
- 'EXTRACT' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_extract',
- ),
- 'ExtractValue' => array(
- 'link' => 'xml-functions',
- 'anchor' => 'function_extractvalue',
- ),
- 'FIELD' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_field',
- ),
- 'FIND_IN_SET' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_find_in_set',
- ),
- 'FLOOR' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_floor',
- ),
- 'FORMAT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_format',
- ),
- 'FOUND_ROWS' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_found_rows',
- ),
- 'FROM_DAYS' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_from_days',
- ),
- 'FROM_UNIXTIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_from_unixtime',
- ),
- 'GET_FORMAT' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_get_format',
- ),
- 'GET_LOCK' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_get_lock',
- ),
- 'GREATEST' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_greatest',
- ),
- 'GROUP_CONCAT' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_group_concat',
- ),
- 'HEX' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_hex',
- ),
- 'HOUR' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_hour',
- ),
- 'IF' => array(
- 'link' => 'control-flow-functions',
- 'anchor' => 'function_if',
- ),
- 'IFNULL' => array(
- 'link' => 'control-flow-functions',
- 'anchor' => 'function_ifnull',
- ),
- 'IN' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_in',
- ),
- 'INET_ATON' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_inet_aton',
- ),
- 'INET_NTOA' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_inet_ntoa',
- ),
- 'INSERT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_insert',
- ),
- 'INSTR' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_instr',
- ),
- 'INTERVAL' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_interval',
- ),
- 'IS_FREE_LOCK' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_is_free_lock',
- ),
- 'IS_USED_LOCK' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_is_used_lock',
- ),
- 'IS' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_is',
- ),
- 'ISNULL' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_isnull',
- ),
- 'LAST_DAY' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_last_day',
- ),
- 'LAST_INSERT_ID' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_last_insert_id',
- ),
- 'LCASE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_lcase',
- ),
- 'LEAST' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_least',
- ),
- 'LEFT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_left',
- ),
- 'LENGTH' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_length',
- ),
- 'LIKE' => array(
- 'link' => 'string-comparison-functions',
- 'anchor' => 'operator_like',
- ),
- 'LN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_ln',
- ),
- 'LOAD_FILE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_load_file',
- ),
- 'LOCALTIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_localtime',
- ),
- 'LOCALTIMESTAMP' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_localtimestamp',
- ),
- 'LOCATE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_locate',
- ),
- 'LOG10' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_log10',
- ),
- 'LOG2' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_log2',
- ),
- 'LOG' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_log',
- ),
- 'LOWER' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_lower',
- ),
- 'LPAD' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_lpad',
- ),
- 'LTRIM' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_ltrim',
- ),
- 'MAKE_SET' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_make_set',
- ),
- 'MAKEDATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_makedate',
- ),
- 'MAKETIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_maketime',
- ),
- 'MASTER_POS_WAIT' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_master_pos_wait',
- ),
- 'MATCH' => array(
- 'link' => 'fulltext-search',
- 'anchor' => 'function_match',
- ),
- 'MAX' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_max',
- ),
- 'MD5' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_md5',
- ),
- 'MICROSECOND' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_microsecond',
- ),
- 'MID' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_mid',
- ),
- 'MIN' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_min',
- ),
- 'MINUTE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_minute',
- ),
- 'MOD' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_mod',
- ),
- 'MONTH' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_month',
- ),
- 'MONTHNAME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_monthname',
- ),
- 'NAME_CONST' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_name_const',
- ),
- 'NOT' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_not',
- ),
- 'NOW' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_now',
- ),
- 'NULLIF' => array(
- 'link' => 'control-flow-functions',
- 'anchor' => 'function_nullif',
- ),
- 'OCT' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_oct',
- ),
- 'OCTET_LENGTH' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_octet_length',
- ),
- 'OLD_PASSWORD' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_old_password',
- ),
- 'OR' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_or',
- ),
- 'ORD' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_ord',
- ),
- 'PASSWORD' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_password',
- ),
- 'PERIOD_ADD' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_period_add',
- ),
- 'PERIOD_DIFF' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_period_diff',
- ),
- 'PI' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_pi',
- ),
- 'POSITION' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_position',
- ),
- 'POW' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_pow',
- ),
- 'POWER' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_power',
- ),
- 'QUARTER' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_quarter',
- ),
- 'QUOTE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_quote',
- ),
- 'RADIANS' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_radians',
- ),
- 'RAND' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_rand',
- ),
- 'REGEXP' => array(
- 'link' => 'regexp',
- 'anchor' => 'operator_regexp',
- ),
- 'RELEASE_LOCK' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_release_lock',
- ),
- 'REPEAT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_repeat',
- ),
- 'REPLACE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_replace',
- ),
- 'REVERSE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_reverse',
- ),
- 'RIGHT' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_right',
- ),
- 'RLIKE' => array(
- 'link' => 'regexp',
- 'anchor' => 'operator_rlike',
- ),
- 'ROUND' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_round',
- ),
- 'ROW_COUNT' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_row_count',
- ),
- 'RPAD' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_rpad',
- ),
- 'RTRIM' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_rtrim',
- ),
- 'SCHEMA' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_schema',
- ),
- 'SEC_TO_TIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_sec_to_time',
- ),
- 'SECOND' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_second',
- ),
- 'SESSION_USER' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_session_user',
- ),
- 'SHA' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_sha1',
- ),
- 'SHA1' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_sha1',
- ),
- 'SIGN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_sign',
- ),
- 'SIN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_sin',
- ),
- 'SLEEP' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_sleep',
- ),
- 'SOUNDEX' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_soundex',
- ),
- 'SPACE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_space',
- ),
- 'SQRT' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_sqrt',
- ),
- 'STD' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_std',
- ),
- 'STDDEV_POP' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_stddev_pop',
- ),
- 'STDDEV_SAMP' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_stddev_samp',
- ),
- 'STDDEV' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_stddev',
- ),
- 'STR_TO_DATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_str_to_date',
- ),
- 'STRCMP' => array(
- 'link' => 'string-comparison-functions',
- 'anchor' => 'function_strcmp',
- ),
- 'SUBDATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_subdate',
- ),
- 'SUBSTR' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_substr',
- ),
- 'SUBSTRING_INDEX' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_substring_index',
- ),
- 'SUBSTRING' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_substring',
- ),
- 'SUBTIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_subtime',
- ),
- 'SUM' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_sum',
- ),
- 'SYSDATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_sysdate',
- ),
- 'SYSTEM_USER' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_system_user',
- ),
- 'TAN' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_tan',
- ),
- 'TIME_FORMAT' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_time_format',
- ),
- 'TIME_TO_SEC' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_time_to_sec',
- ),
- 'TIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_time',
- ),
- 'TIMEDIFF' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_timediff',
- ),
- 'TIMESTAMP' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_timestamp',
- ),
- 'TIMESTAMPADD' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_timestampadd',
- ),
- 'TIMESTAMPDIFF' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_timestampdiff',
- ),
- 'TO_DAYS' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_to_days',
- ),
- 'TRIM' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_trim',
- ),
- 'TRUNCATE' => array(
- 'link' => 'mathematical-functions',
- 'anchor' => 'function_truncate',
- ),
- 'UCASE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_ucase',
- ),
- 'UNCOMPRESS' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_uncompress',
- ),
- 'UNCOMPRESSED_LENGTH' => array(
- 'link' => 'encryption-functions',
- 'anchor' => 'function_uncompressed_length',
- ),
- 'UNHEX' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_unhex',
- ),
- 'UNIX_TIMESTAMP' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_unix_timestamp',
- ),
- 'UpdateXML' => array(
- 'link' => 'xml-functions',
- 'anchor' => 'function_updatexml',
- ),
- 'UPPER' => array(
- 'link' => 'string-functions',
- 'anchor' => 'function_upper',
- ),
- 'USER' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_user',
- ),
- 'UTC_DATE' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_utc_date',
- ),
- 'UTC_TIME' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_utc_time',
- ),
- 'UTC_TIMESTAMP' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_utc_timestamp',
- ),
- 'UUID_SHORT' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_uuid_short',
- ),
- 'UUID' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_uuid',
- ),
- 'VALUES' => array(
- 'link' => 'miscellaneous-functions',
- 'anchor' => 'function_values',
- ),
- 'VAR_POP' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_var_pop',
- ),
- 'VAR_SAMP' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_var_samp',
- ),
- 'VARIANCE' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_variance',
- ),
- 'VERSION' => array(
- 'link' => 'information-functions',
- 'anchor' => 'function_version',
- ),
- 'WEEK' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_week',
- ),
- 'WEEKDAY' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_weekday',
- ),
- 'WEEKOFYEAR' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_weekofyear',
- ),
- 'XOR' => array(
- 'link' => 'logical-operators',
- 'anchor' => 'operator_xor',
- ),
- 'YEAR' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_year',
- ),
- 'YEARWEEK' => array(
- 'link' => 'date-and-time-functions',
- 'anchor' => 'function_yearweek',
- ),
- 'SOUNDS_LIKE' => array(
- 'link' => 'string-functions',
- 'anchor' => 'operator_sounds-like',
- ),
- 'IS_NOT_NULL' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_is-not-null',
- ),
- 'IS_NOT' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_is-not',
- ),
- 'IS_NULL' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'operator_is-null',
- ),
- 'NOT_LIKE' => array(
- 'link' => 'string-comparison-functions',
- 'anchor' => 'operator_not-like',
- ),
- 'NOT_REGEXP' => array(
- 'link' => 'regexp',
- 'anchor' => 'operator_not-regexp',
- ),
- 'COUNT_DISTINCT' => array(
- 'link' => 'group-by-functions',
- 'anchor' => 'function_count-distinct',
- ),
- 'NOT_IN' => array(
- 'link' => 'comparison-operators',
- 'anchor' => 'function_not-in',
- )
- );
- ?>
|