Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Sqldate Mysql Date Literal

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Literal

Advertisement
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)
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 20, 2009

Related Tutorials

Discuss: Mysql Date Literal  

Post your Comment


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