Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

SQL Server Compact Edition ISNULL(sth, ' ') restituisce un valore booleano?

Secondo questo ISNULL non è implementato in SQL Server CE. Tuttavia, mi aspetto che venga generato un errore di sintassi.

Soluzione alternativa:puoi utilizzare CASE WHEN email IS NULL THEN 'eeee' ELSE email END o COALESCE . Preferibilmente quest'ultimo.

Utilizzare anche query parametrizzate. Se non sai perché dovresti, impara.