1
In a datetime field, when the value is NULL
should only return -
, tried the function IFNULL
SELECT ISNULL(data, '-') as data FROM tabela
but it returns me the error
Microsoft OLE DB Provider for SQL Server error '80040e07'
Falha ao converter data e/ou hora da cadeia de caracteres.
Marcelo, it would be possible to post your code?
– Rubico
Edited by, @Rubico
– Marcelo de Andrade
from what I’ve seen, you’re not using ifnull, but isnull
– Rubico
@Rubico also tried with him. The solution commented by Marconi solved.
– Marcelo de Andrade