Mysql Date Literal

Ads
 

Mysql Date Literal

A string is a sequence collection of bytes or characters, enclosed between a single quote (?'?) or double quote (?"?) characters.

A string is a sequence collection of bytes or characters, enclosed between a single quote (?'?) or double quote (?"?) characters.

Mysql Date Literal

     

A string is a sequence collection of bytes or characters, enclosed between a single quote (?'?) or double quote (?"?) characters. 

Examples: 
 'one string'
"second string"

Understand with Example

The Tutorial make you an easy example to understand the concept on 'Mysql Date Literal'.To grasp this example, we use N'literal'(or n'literal') to create a String in the national character set.The Syntax used for Date Literal in Mysql is given below:

SELECT N'Hello World' : The Query uses N'Hello World' to create a String in the national character set.

 N'literal' (or n'literal') to create a String in the national character set. 

SELECT N'Hello World'

 Output :

+-------------+
| Hello World |
+-------------+
| Hello World |
+-------------+
1 row in set (0.00 sec)

Ads

Ads