I am querying our database on a table, patient, desc:
pat_last_name char(20)
pat_first_name char(20)
pat_ext_id char(11)
My query:
set colsep '|'
select pat_ext_id, pat_last_name, Pat_first_name
from patient
where pat_ext_id = '69910.0';
My output:
pat_ext_id|pat_last_name |pat_first_name |
69910.0 |Gechter |Wendi |
I would like my output to trim off the spaces at the end. Output to look like:
69910.0|Gechter|Wendi|
I am using Oracle 8i and SQL Plus. I have tried using trim and it doesn't work. I have also tried rtrim and ltrim. Unless I am using it wrong, it is not working. Are there any other suggestions? Thanks, Wendi
pat_last_name char(20)
pat_first_name char(20)
pat_ext_id char(11)
My query:
set colsep '|'
select pat_ext_id, pat_last_name, Pat_first_name
from patient
where pat_ext_id = '69910.0';
My output:
pat_ext_id|pat_last_name |pat_first_name |
69910.0 |Gechter |Wendi |
I would like my output to trim off the spaces at the end. Output to look like:
69910.0|Gechter|Wendi|
I am using Oracle 8i and SQL Plus. I have tried using trim and it doesn't work. I have also tried rtrim and ltrim. Unless I am using it wrong, it is not working. Are there any other suggestions? Thanks, Wendi