>I want to query records that do not contain empty strings and null >values through a SELECT statement. > >IS NOT NULL works for the nulls, but how I select non-empty strings >("")? I tried everything I can think of and even some non-published >statements like name IS NOT '' ..... I just can't figure it out....
WHERE (col_name IS NOT NULL AND col_name != '') > >Can anyone help me? > >Thank you in advance! > >Andrew --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php