Mysql Date Literal

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

Ads

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)

Advertisements

Share on Google+Share on Google+

Mysql Date Literal

Posted on: January 20, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Mysql Date Literal  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads