Can I assign a static value to NULL during a select statement in MySQL?
I would like any NULL values to be presented as ‘not available’ instead and have the ORDER BY handle the cell as ‘not available’ instead of NULL as well.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use COALESCE( column, ‘not available’ ) which returns the string ‘not available’ if column is null (in fact, it returns the first non-null argument).