Bluehost.com Web Hosting $6.95

selecting records on empty int field

This is a discussion on selecting records on empty int field within the MySQL Database forums, part of the Database Forums category; Hi, I want to select records having an empty int field. I probably should change that field to not-empty ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-26-2007
Huub
 
Posts: n/a
Default selecting records on empty int field

Hi,

I want to select records having an empty int field. I probably should
change that field to not-empty by default, so I have to at least give
the value 0 to it. Until then I don't know how to select it:

select lidnr from hvw where naam != " " and kenmerk2006 != ' '

where naam = char and kenmerk2006 = int doesn't work.

Thanks for helping out.

Huub
Reply With Quote
  #2 (permalink)  
Old 04-26-2007
Robert Klemme
 
Posts: n/a
Default Re: selecting records on empty int field

On 26.04.2007 11:41, Huub wrote:
> Hi,
>
> I want to select records having an empty int field. I probably should
> change that field to not-empty by default, so I have to at least give
> the value 0 to it. Until then I don't know how to select it:
>
> select lidnr from hvw where naam != " " and kenmerk2006 != ' '
>
> where naam = char and kenmerk2006 = int doesn't work.
>
> Thanks for helping out.
>
> Huub


Try

WHERE your_field IS NULL

robert
Reply With Quote
  #3 (permalink)  
Old 04-26-2007
Huub
 
Posts: n/a
Default Re: selecting records on empty int field

> Try
>
> WHERE your_field IS NULL
>
> robert


Working. Thank you.
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:07 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0