Home Sql Mysql-example Mysql MidString
Questions:Ask|Latest



Mysql MidString
Posted on: January 17, 2009 By Deepak Kumar
Mysql MidString is used to return the string, with sub string beginning at position pos and len.

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)

Recommend the tutorial

Ask Questions?    Discuss: Mysql MidString  

Post your Comment


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