sql - how to hide the comma data in Oracle -
i have problem how hide comma when field got value comma. example if have many address. got idea? sql:
select mhn.id_mohon, mhn.penyerah_nama, upper(mhn.address1), upper(mhn.address2), upper(mhn.address3), upper(mhn.address4) mohon mhn, kod_negeri kn mhn.penyerah_kod_negeri = kn.kod(+) , mhn.id_mohon = :p_id_mohon
you can remove commas strings using replace function. like:
select mhn.id_mohon, mhn.penyerah_nama, replace(upper(mhn.address1), ',', '') . . . you can concatenate address fields 1 value, if want them in 1 column:
select mhn.id_mohon, mhn.penyerah_nama, upper(mhn.address1) || upper(mhn.address2) || upper(mhn.address3) || upper(mhn.address4) address
Comments
Post a Comment