If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > View for decode 0 to null

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-12-04, 01:39
dhydrated dhydrated is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Question View for decode 0 to null

I've created a view from a table where I replace all the 0 value to null using decode(). When I execute the CREATE VIEW command, it is fine. Even the SELECT statement is working fine. But when I try to query this view, its giving me a syntax error. But If I replace null to 0, it is working fine.

So, How can I create a view from a table where I want to replace all the 0 value to null?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On