In Sybase and MSSqlServer TransactSQL, we have the IsNull function (columnName, valueForNull) to return the typed value to the default when the column value is null. How can I replicate this functionality in SQLite?
Example in TransactSQL:
select IsNull(MyColumn,-1) as MyColumn from MyTable
If MyColumn is null, this expression will return -1 as the value of MyColumn. Want to do something like this in SQLite.
(Yes, I know that I can write my own wrapper function to handle this - this is not the answer I'm looking for)
TIA
source share