This documentation is for an older version. If you're using the most current version, select the documentation for that version with the version switch in the upper right corner of the online documentation, or by downloading a newer PDF or EPUB file.

9.1 Literal Values

9.1.1 String Literals
9.1.2 Number Literals
9.1.3 Date and Time Literals
9.1.4 Hexadecimal Literals
9.1.5 Boolean Literals
9.1.6 Bit-Field Literals
9.1.7 NULL Values

This section describes how to write literal values in MySQL. These include strings, numbers, hexadecimal values, boolean values, and NULL. The section also covers the various nuances and gotchas that you may run into when dealing with these basic types in MySQL.