string str2 = "select pm.paxseqno,pm.guestallowed,pm.paxname,pm.cardtype,pm.class,pm.paxseatno,pm.status,pm.ffpno,pm.Time,CASE WHEN cf.Cabin = 'F' THEN'First Class'WHEN cf.Cabin = 'E' THEN 'Economy' WHEN cf.Cabin = 'P' THEN 'Premiere'WHEN cf.Cabin = 'K' THEN 'Unknown'ELSE 'Unknown' END as Cabin from paxmaster Pm left join cabininfo cf on Pm.class=cf.class
pm.paxname contails Full Name Like 'DALAL MIHIRMR' this
and i want to split name in to two column Like First Name is' MIHIRMR' and Second Clolumn is 'DALAL' in My Sql
So How to do this
Please Help

Jignesh KumarPosted Nov 15, 2018, 9:32 AM
Faisal PathanPosted Nov 15, 2018, 3:42 AM
MukeshPosted Nov 15, 2018, 2:21 AM
Faisal PathanPosted Nov 15, 2018, 2:19 AM
SUBSTRING_INDEX(POS, ',', 1)for position1SUBSTRING_INDEX(POS, ',', -1)for position2MukeshPosted Nov 15, 2018, 1:36 AM
Faisal PathanPosted Nov 15, 2018, 12:54 AM