MySQL保留字

  • 本文列出主要MySQL(自MySQL 5以后的版本)中所有的保留字。
保留字保留字保留字
ACTIONADDALL
ALTERANALYZEAND
ASASCASENSITIVE
BEFOREBETWEENBIGINT
BINARYBITBLOB
BOTHBYCALL
CASCADECASECHANGE
CHARCHARACTERCHECK
COLLATECOLUMNCONDITION
CONNECTIONCONSTRAINTCONTINUE
CONVERTCREATECROSS
CURRENT_DATECURRENT_TIMECURRENT_TIMESTAMP
CURRENT_USERCURSORDATABASE
DATABASESDATEDAY_HOUR
DAY_MICROSECONDDAY_MINUTEDAY_SECOND
DECDECIMALDECLARE
DEFAULTDELAYEDDELETE
DESCDESCRIBEDETERMINISTIC
DISTINCTDISTINCTROWDIV
DOUBLEDROPDUAL
EACHELSEELSEIF
ENCLOSEDENUMESCAPED
EXISTSEXITEXPLAIN
FALSEFETCHFLOAT
FORFORCEFOREIGN
FROMFULLTEXTGOTO
GRANTGROUPHAVING
HIGH_PRIORITYHOUR_MICROSECONDHOUR_MINUTE
HOUR_SECONDIFIGNORE
ININDEXINFILE
INNERINOUTINSENSITIVE
INSERTINTINTEGER
INTERVALINTOIS
ITERATEJOINKEY
KEYSKILLLEADING
LEAVELEFTLIKE
LIMITLINESLOAD
LOACLTIMELOCALTIMESTAMPLOCK
LONGLONGBLOBLONGTEXT
LOOPLOW_PRIORITYMATCH
MEDIUMBLOBMEDIUMINTMEDIUMTEXT
MIDDLEINTMINUTE_MICROSECONDMINUTE_SECOND
MODMODIFIESNATURAL
NONO_WRITE_TO_BINLOGNOT
NULLNUMERICON
OPTIMIZEOPTIONOPTIONALLY
ORORDEROUT
OUTEROUTFILEPRECISION
PRIMARYPROCEDUREPURGE
READREADSREAL
REFERENCESREGEXPRELEASE
RENAMEREPEATREPLACE
REQUIRERESTRICTRETURN
REVOKERIGHTRLIKE
SCHEMASCHEMASSECOND_MICROSECOND
SELECTSENSITIVESEPARATOR
SETSHOWSMALLINT
SONAMESPATIALSPECIFIC
SQLSQL_BIG_RESULTSQL_CALC_FOUND_ROWS
SQL_SMALL_RESULTSQLEXCEPTIONSQLSTATE
SQLWARNINGSSLSTARTING
STRAIGHT_JOINTABLETERMINATED
TEXTTHENTIME
TIMESTAMPTINYBLOBTINYINT
TINYTEXTTOTRAILING
TRIGGERTRUEUNDO
UNIONUNIQUEUNLOCK
UNSIGHEDUPDATEUSAGE
USEUSINGUTC_DATE
UTC_TIMEUTC_TIMESTAMPVALUES
VARBINARYVARCHARVARCHARACTER
VARYINGWHENWHERE
WHILEWITHWRITE
XORYEAR_MONTHZEROFILL