Reserved Words

suggest change

Introduction

MySQL has some special names called reserved words. A reserved word can be used as an identifier for a table, column, etc. only if it’s wrapped in backticks (`), otherwise it will give rise to an error.

To avoid such errors, either don’t use reserved words as identifiers or wrap the offending identifier in backticks.

Remarks

Listed below are the reserved words in MySQL 5.7 (from the official documentation). Version 8.0 reserves additional words, including CUBE, FUNCTION, GROUPING, LATERAL, OF, RECURSIVE, ROLE, ROW, ROWS, SYSTEM, and WINDOW.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents