Multiple strings in oracle -
i make multiple strings in oracle following table
http://sqlfiddle.com/#!4/546b1
create table test ( client varchar(20), dat varchar(20),secuence varchar(20),cod1 varchar(20),cod2 varchar(20), personal varchar(20),comments varchar(140), area varchar(20),phone varchar(20)); insert test values ('2869', '17/04/2010 03:12','2','..', '','','drummer lars ulrich in local newspaper.','',''); insert test values ('2869', '17/04/2010 03:12','1','..', '','','formed in 1981 when vocalist/guitarist james hetfield responded advertisement posted by','',''); insert test values ('2869', '17/04/2010 03:12','0','ls', 'te','1abfrn','metallica american heavy metal band formed in los angeles, california. metallica wasadvertisement posted drummer lars ulrich in a,','01442','2236087'); insert test values ('3532', '18/04/2010 09:20','2','', '','','the expression "relative theory" (german: relativtheorie) used in 1906 max planck','',''); insert test values ('3532', '18/04/2010 09:20','1','', '','','albert einstein: special relativity , general relativity term "theory of relativity" based on','',''); insert test values ('3532', '18/04/2010 09:20','0','ls','tx','1catar','the theory of relativity, or relativity in physics, encompasses 2 theories by','01871','7142175');
i have no idea how , check out board should fit me attachment below. suggestion appreciate help
|20022869| 17/04/2010 03:12| 8lsfe| sandst| paper. abfrn | |20022869| 17/04/2010 03:12| 7lsfe| sandst| d drummer lars ulrich in local news | |20022869| 17/04/2010 03:12| 6lsfe| sandst| ield responded advertisement poste | |20022869| 17/04/2010 03:12| 5lsfe| sandst| 1981 when vocalist/guitarist james hetf | |20022869| 17/04/2010 03:12| 4lsfe| sandst| ed drummer lars ulrich in formed in | |20022869| 17/04/2010 03:12| 3lsfe| sandst| ifornia. metallica wasadvertisement post | |20022869| 17/04/2010 03:12| 2lsfe| sandst| vy metal band formed in los angeles, ca | |20022869| 17/04/2010 03:12| 1lsfe| sandst| 014422236087metallica american hea | |20023532| 18/04/2010 09:20| 8lstx| sandst| 06 max planck catar | |20023532| 18/04/2010 09:20| 7lstx| sandst| ory" (german: relativtheorie) used in 19 | |20023532| 18/04/2010 09:20| 6lstx| sandst| based on expression "relative | |20023532| 18/04/2010 09:20| 5lstx| sandst| tivity term "theory of relativity" w | |20023532| 18/04/2010 09:20| 4lstx| sandst| ein: special relativity , general rela | |20023532| 18/04/2010 09:20| 3lstx| sandst| encompasses 2 theories albert einst | |20023532| 18/04/2010 09:20| 2lstx| sandst| r relativity in physics, | |20023532| 18/04/2010 09:20| 1lstx| sandst| 018717142175 theory of relativity, o |
something this:
select '|2002'||cast(client char(4))||'|'||chr(9)||cast(dat char(20))||'|'||chr(9) ||cast(secuence char(1))||cast(cod1 char(2))||cast(cod2 char(2))|| '|'||chr(9)||cast(personal char(6))||'|'||chr(9)|| cast((area||phone||' '||comments) char(180))||chr(9)||'|' test;
but you'd better have length personal 6 symbols , 2 code in example.