I have an Accounts
table with columns name, password
and email
. They are all type nvarchar
.
I wrote a query like
According this ISNULL
is not implemented in SQL Server CE. I would expect to see a syntax error raised, however.
Workaround: you can use CASE WHEN email IS NULL THEN 'eeee' ELSE email END
or COALESCE. Preferably the latter.
Also use parameterised queries. If you don't know why you should, learn.