ASE, SQL, OLE, ADE
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
ADOLisp - Select rows with null values
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
137 Views, 1 Replies
01-02-2013 10:19 AM
Hi - I'm attempting to update a database so that all fields in a specified column that have a null value and are of datatype number are allocated a value of 0 (zero), but I'm having trouble selecting the offending rows..
my statement is
"select * from crossings where pipeline_id = null"
and this returns nothing (although I know there are some in there because if i run the following:
"select * from crossings where pipeline_id <> null"
it returns all rows that have a value and omits those that don't (ie the ones that I want)
Anyone know what I'm doing wrong?
Re: ADOLisp - Select rows with null values
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-03-2013 02:07 AM in reply to:
petervose
Realised I should use keyword "IS" instead of using "="
select * from crossings where pipeline_id IS null

