Javatpoint Logo
Javatpoint Logo

Literals (Constants)

In MySQL, literals are the constant. Following are the types of literal:-

1. String Literal

In MySQL, string literals are in single quotes (') or double quotes (").

Example 1

MySQL Programming Literals

Example 2

MySQL Programming Literals

2. Number Literals

In MySQL, number literals are positive or negative numbers.

Example 1

MySQL Programming Literals

Example 2

MySQL Programming Literals
Next TopicMySQL Date & Time




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA