grippat Posted November 30, 2007 Share Posted November 30, 2007 Is there a way to tell MySQL to return no value whatsoever if a value in a column is NULL? When I do a select on a certain column it returns NULL for some rows and nothing for others. I'd rather have it be consistent. Link to comment Share on other sites More sharing options...
Ingolme Posted November 30, 2007 Share Posted November 30, 2007 I guess you should make the fields "NOT NULL" when you create the database table. Link to comment Share on other sites More sharing options...
Reg Edit Posted December 1, 2007 Share Posted December 1, 2007 Is there a way to tell MySQL to return no value whatsoever if a value in a column is NULL? When I do a select on a certain column it returns NULL for some rows and nothing for others. I'd rather have it be consistent.Does MySQL have a COALESCE function? That's how you'd do it if it was MS SQL. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.