Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql select if empty result

SELECT IFNULL( (SELECT field1 FROM table WHERE id = 123 LIMIT 1) ,'not found');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mysql #select #empty #result
ADD COMMENT
Topic
Name
1+5 =