I am using the DECODE function and my default value has a comma. When I run the query, it's cutting off everything after the comma in my default. How can I get the entire string returned?
SELECT DECODE (
mycol, '1', 'One',
'2', 'Two',
'3', 'Three',
'This, is the default') AS myval
FROM mytable
The query returns only "This" as the default. Thanks!
SELECT DECODE (
mycol, '1', 'One',
'2', 'Two',
'3', 'Three',
'This, is the default') AS myval
FROM mytable
The query returns only "This" as the default. Thanks!