Home Sql Sqldate Mysql Date Literal



Mysql Date Literal
Posted on: January 20, 2009 at 12:00 AM
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)

Related Tags for Mysql Date Literal:
cstringiosedchardoublecollectionbytesequencecharactercharactersclosectebytessinglebetweenequoteceintrtweenosclosedosclesdoseeetwcolracishallcollectaractcloscollectstrtwseqssriringstseqonolo


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Literal  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.