Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2005, 05:58 AM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to extract a substring from a string....

hi..

Can anyone help me to know the function to be used to extract a substring from a string in MySQL?

regards..
 
Old April 12th, 2005, 08:26 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

SUBSTRING() & SUBSTRING_INDEX() are available in MySQL, you can see the spec on this page: http://dev.mysql.com/doc/mysql/en/string-functions.html

 
Old May 18th, 2005, 06:58 AM
Authorized User
 
Join Date: May 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
you can use substring(a,b);where a is the starting index from where you want the string and b is the end of that substring.
let me know whether it worked.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract part of String carrie09 Access 6 August 24th, 2007 10:04 AM
parsing a string using charindex and substring cole SQL Server 2000 3 March 20th, 2007 02:09 AM
Extract first numeric string blkskullwork Javascript 1 November 6th, 2006 02:37 AM
how to extract from a string fraijo SQL Server 2000 3 October 25th, 2006 09:55 PM
Parsing string to check for substring bcamp1973 XSLT 2 June 5th, 2006 06:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.