How to select value from a table if it value is not null,and select a default value if not?.I.E:
select coalesce(username,'its null') from tb_user where int_id_user = 0
I try to run this query but its not working,i expect to get 'its null' since int_id_user is 0,but it returns NULL.