In a datetime field, when the value is NULL
should only return -
, I tried the IFNULL
function
SELECT ISNULL(data, '-') as data FROM tabela
but I get the error
Microsoft OLE DB Provider for SQL Server error '80040e07'
Falha ao converter data e/ou hora da cadeia de caracteres.