MySQL Forums
Forum List  »  Newbie

select statement as per the column content
Posted by: chinmay panda
Date: September 01, 2016 12:45AM

Hi All,

Hope you are doing well.

Please find the requirement.

Create table statement
Code: [Select all] [Show/ hide]

create table ABC_MASTER (Part_number varchar(40),Filename varchar(80));

Insert table statement
Code: [Select all] [Show/ hide]
insert into ABC_MASTER values (123, abc*cvbsmdm*cbdjdk(9)*asdre-01);
insert into ABC_MASTER values (124, qwe);

Now the task is the select statement from ABC_MASTER which shows like this, split the string as per (*)

part_number................filename
123............................abc
123............................cvbsmdm
123............................cbdjdk(9)
123............................asdre-01
124............................qwe

Thanks
Chinmay

Options: ReplyQuote


Subject
Written By
Posted
select statement as per the column content
September 01, 2016 12:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.