| Anyone know if Double Quotes in Column Name Can be replace with Alternate Character??? [message #543396] |
Tue, 14 February 2012 10:20  |
 |
borioca
Messages: 9 Registered: February 2012 Location: USA
|
Junior Member |
|
|
Hi everyone this is my first post.
I'm wondering if anyone knows of a way to replace the Double Quotes used to enclose column names with an alternative character.
This is the SQL I have now that Works!
select (case when CUST is null then "/BIC/Z_SUPPLNT" else NM1 end) CMPNTSUPSRCE
from TBL1, TBL2
where "/BIC/Z_MAJVEND"=CUST(+) and Material = '1ABCD456'
order by Material
But would like to do something along these lines below but keep getting error "ORA-00936: missing expression". Any Advice or suggestions would be greatly appreciated.
select (case when CUST is null then chr(34)||/BIC/Z_SUPPLNT||chr(34) else NM1 end) CMPNTSUPSRCE
from TBL1, TBL2
where chr(34)||/BIC/Z_MAJVEND||chr(34)=CUST(+) and Material = '1ABCD456'
order by Material
[Updated on: Tue, 14 February 2012 10:26] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Anyone know if Double Quotes in Column Name Can be replace with Alternate Character??? [message #543459 is a reply to message #543436] |
Tue, 14 February 2012 22:53  |
|
|
Dear borioca,
Be polite; write diplomatically; even in a declaration of war one observes the rules of politeness.
I am a member of this forum from a long time now and its like my home for mentors. Its not a place to just drop by snatch your answer and go away.. come.. we will welcome.. discuss and we will help.. but be polite. Its a facility not your birth right to get your solution here. Please make peace no war.we are professionals isnt it.
Javed K
|
|
|
|