“If not exists” fails on SQL CE

前端 未结 3 590
刺人心
刺人心 2020-12-03 21:47

I\'ve got an unexpected problem. I\'m making a script to update the schema on a SQL CE database. This won\'t run:

if not exists
(
    Select column_name from         


        
3条回答
  •  失恋的感觉
    2020-12-03 22:03

    It appears that SQL CE does not support any procedural extensions at all; only DDL and DML like from the 1970s.

    You will either have to put procedural logic in your application (C# or whatever) or go to an embeddable database with procedural extensions, like MySQL.

提交回复
热议问题