I am trying to find a solution to achieve the following result.
If MySQL query has empty string ''
, than use default value defined in a table schema.
For example
INSERT INTO `users`(`name`,`nickname`,`balance`)
VALUES ('hello','world','');
In this case if the balance column's default value is 0
then it should be set instead of the empty string.
Is it possible to achieve this ?