Skip to content
Advertisement

INSERT INTO with use CASE – sqlite?

I have a problem with syntax. I need use IF in sqlite, and I replace IF – CASE.
My statement doesn’t work, I don’t know, what is wrong?

Advertisement

Answer

Assuming the default for aNew is NULL:

Otherwise you’ll need to put that logic in your application code.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement