'how to validate date null in mysql?
Solution 1:[1]
You can use something like this
CREATE TABLE t1 (fecha VARCHAR(2))
SELECT IF( COUNT(*) = 0 , 'Empty',`fecha`) FROM t1
| IF( COUNT(*) = 0 , 'EMpty',`fecha`) | | :---------------------------------- | | EMpty |
db<>fiddle here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |