3
How to show a column, but if null show another sql as Example a table with the name tasks.
| id | nome | nome resumido | +-----+----------+----------------+ | 1 | nome 1 | 1 | | 2 | nome 2 | 2 | | 3 | nome 3 | null |
sql will take the short name, where null is it takes the name for example:
| id | as nome | +-----+----------+ | 1 | 1 | | 2 | 2 | | 3 | nome 3 |
If you can’t do it in sql I’m using the php language
You know the function
coalesce
?– Woss