When using the SQLite command line interface (CLI), by default, whenever a query returns a null value, the output is the empty string (''
).
We can change this by using the -nullvalue
command line option when launching SQLite.
We can also use the .nullvalue
dot command if we’re already in the SQLite CLI.