O'Reilly logo

MySQL in a Nutshell by Russell J.T. Dyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Statements Grouped by Type

The following is a quick list of SQL statements grouped by type. Some statements are listed in more than one group, because they have more than one use relative to the groups listed.

Data Manipulation

DELETE, DO, HANDLER, INSERT, JOIN, LOADDATAINFILE, REPLACE, SELECT, SELECT...UNION, TRUNCATE, UPDATE, USE

Database and Table Schema

ALTERDATABASE, ALTERTABLE, ALTERVIEW, CREATEDATABASE, CREATEINDEX, CREATE TABLE, CREATEVIEW, DROPDATABASE, DROPINDEX, DROPTABLE, DROPVIEW, RENAMETABLE

Database and Table Properties

DESCRIBE, SHOWCHARACTERSET, SHOWCOLLATION, SHOWCOLUMNS, SHOWCREATEDATABASE, SHOWENGINES, SHOWERRORS, SHOWGRANTS, SHOWINDEX, SHOWINNODBSTATUS, SHOWLOGS, SHOWPRIVILEGES, SHOWPROCESSLIST, SHOWSTATUS, SHOWTABLESTATUS, SHOWTABLES, SHOWVARIABLES, SHOWWARNINGS

Table Administration

ANALYZETABLE, BACKUPTABLE, CACHEINDEX, CHECKTABLE, CHECKSUMTABLE, LOADINDEXINTO, OPTIMIZETABLE, REPAIRTABLE, RESET, RESTORETABLE, SET, SHOWINDEX, SHOWTABLESTATUS

User Administration

DROPUSER, GRANT, REVOKE, SETPASSWORD, SHOWGRANTS, SHOWPRIVILEGES, FLUSH

Server Administration

SET, SHOWENGINES, SHOWERRORS, SHOWINNODBSTATUS, SHOWLOGS, SHOWPROCESSLIST, SHOWSTATUS, SHOWVARIABLES, SHOWWARNINGS, FLUSH, KILL

Replication

CHANGEMASTERTO, LOADDATAFROMMASTER, PURGEMASTERLOGS, RESETSLAVE, RESETMASTER, SETGLOBALSQL_SLAVE_SKIP_COUNTER, SETSQL_LOG_BIN, SHOWBIN_LOG_EVENTS, SHOWMASTERLOGS, SHOWMASTERSTATUS, SHOWSLAVEHOSTS, SHOWSLAVESTATUS, START SLAVE, STOPSLAVE

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required