By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE t1 (fecha VARCHAR(2))
SELECT IF( COUNT(*) = 0 , 'EMpty',`fecha`) FROm t1
IF( COUNT(*) = 0 , 'EMpty',`fecha`) |
---|
EMpty |
IF( COUNT(*) = 0 , 'EMpty',`fecha`) |
---|
EMpty |