Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 New to this

Author  Topic 

Liro0917
Starting Member

7 Posts

Posted - 2010-04-05 : 09:11:10
I have a database that I need to get information from. However, one of the fields have been used for what should just be a product name,but it has, Product Name, Size, Strength I need each of these fields to be separate field. How can I extract the data with a SQL query with each field becoming it's own they are separated by a space. Is it possible? Any ideas? I am using MYSql to query the data


Thanks!
Liro

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-04-05 : 09:36:56
This is an MS SQL Server forum.
How to split strings will be different between MS T-SQL and MySQL.
So you should better look for help in a MySQL forum.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-04-05 : 09:52:08
you may try posting it on mysql forum at www.dbforums.com

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

Liro0917
Starting Member

7 Posts

Posted - 2010-04-05 : 10:05:44
Thanks I will go there.

Thanks!
Liro
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-04-05 : 10:09:03
quote:
Originally posted by Liro0917

I have a database that I need to get information from. However, one of the fields have been used for what should just be a product name,but it has, Product Name, Size, Strength I need each of these fields to be separate field. How can I extract the data with a SQL query with each field becoming it's own they are separated by a space. Is it possible? Any ideas? I am using MYSql to query the data


Thanks!
Liro


Hint : Use substring and locate functions

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -