Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

String Concatenation - SQL Query(pl-sql function body returning SQL query

Lucy DiscoverNov 12 2009 — edited Nov 12 2009
Hello all,

I just have problem with concatenation of the string . I would like to return something like " Lname , FNAMe " but the below returns Lnamefname

v_sql := ' SELECT concat(LNAME,FNAME) as CONTRACTOR,'
||' s.TEAM as TEAM,'
||' s.CONTRACT_NO as CONTRACT_NO,'
||' FROM s '

I also tried the below which gave the results as fname (seprate column as contractor ) and lname was given seprately as lname... I would like to have it like

example result should be something like := Weigner , Lucy

v_sql := ' SELECT LNAME'|| ', ' ||'FNAME CONTRACTOR,'
||' S.TEAM as TEAM,'
||' S.CONTRACT_NO as CONTRACT_NO,'


Thank you
This post has been answered by Hari_639 on Nov 12 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2009
Added on Nov 12 2009
2 comments
588 views