Mysql MidString

Mysql MidString is used to return the string, with sub string beginning at position pos and len.

Ads

Mysql MidString

     

Mysql MidString is used to return the string, with sub string beginning at position pos and len.This is a synonym for SUB STRING( str , pos , len ) . 

SYNTAX:-MID(str,pos,len)

Understand with Example

The Tutorial illustrate an example from 'Mysql MidSTRING'.To understand this example we use the given below syntax that return the string begins with position 1 and length 9.

Query:-

 

 

mysql> select mid('Roseindia.net',1,9)as MIDSTRING;

Output:-

+-----------+
| MIDSTRING |
+-----------+
| Roseindia |
+-----------+
1 row in set (0.00 sec)

Advertisements

Ads
Share on Google+Share on Google+

Mysql MidString

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

Advertisements

Ads
 

Discuss: Mysql MidString  

Post your Comment


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

Ads

 

Ads