If you really must output every values including the NULL ones:
select IFNULL(prereq,"") from test
More Related Contents:
- Can MySQL replace multiple characters?
- How to convert a string to date in MySQL?
- MySQL string replace
- How to find similar results and sort by similarity?
- How can I use mySQL replace() to replace strings in multiple records?
- How do I do a fuzzy match of company names in MYSQL with PHP for auto-complete?
- How do you extract a numerical value from a string in a MySQL query?
- SQL order string as number
- How to remove all non-alpha numeric characters from a string in MySQL?
- MySQL search and replace some text in a field
- How to count words in MySQL / regular expression replacer?
- MySQL – length() vs char_length()
- Capitalize first letter. MySQL
- How to fix double-encoded UTF8 characters (in an utf-8 table)
- When to use NULL in MySQL tables
- Replace Into Query Syntax
- How do I get SUM function in MySQL to return ‘0’ if no values are found?
- MySql – Way to update portion of a string?
- MySQL foreign key to allow NULL?
- Replace empty strings with null values
- mysql: why comparing a ‘string’ to 0 gives true?
- MySQL CONCAT returns NULL if any field contain NULL
- What are practical differences between `REPLACE` and `INSERT … ON DUPLICATE KEY UPDATE` in MySQL?
- Replace null with 0 in MySQL
- MySQL : how to remove double or more spaces from a string?
- MySQL for replace with wildcard
- Strip last two characters of a column in MySQL
- How to do unique constraint works with NULL value in MySQL
- Last index of a given substring in MySQL
- How to search and replace all instances of a string within a database?