In MySQL, literals are the constant. Following are the types of literal:-
In MySQL, string literals are in single quotes (') or double quotes (").
Select class from table1 where name='Dolly';
Select class from table1 where name="Dolly";
In MySQL, number literals are positive or negative numbers.
Select class from table1 where id = 6;
Select class from table1 where marks = +65;