|
|
|
|
|
|
|
Re: changing zero into hi? [message #264383 is a reply to message #264379] |
Mon, 03 September 2007 02:44 |
tondapi
Messages: 99 Registered: August 2007 Location: usa
|
Member |
|
|
By using decode function it showing error,THE ERROR IS
EXPRESSION TYPE IS NOT COMPATIBLE WITH THE OBJECT TYPE
The function i used
select decode(loc,0,'hi',loc) from tablename
|
|
|
|
|
|
|
|
|
|
|
|
Re: changing zero into hi? [message #264408 is a reply to message #264402] |
Mon, 03 September 2007 03:53 |
|
Michel Cadot
Messages: 68716 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote: | Michel , my question was about decode one not any other else.
|
I was not answering to you but anyway this seems to work or not, 'Hi' is not a number, a number is not a string, never rely on an implicit conversion, always use same datatype at same place.
Regards
Michel
|
|
|