Determine if table exists in SQL Server CE?

后端 未结 3 1868
余生分开走
余生分开走 2021-02-07 06:00

I know this is similar to this question, but I\'m using SQL Server CE 3.5 with a WinForms project in C#. How can I determine whether a table exists? I know the IF

3条回答
  •  名媛妹妹
    2021-02-07 06:17

    Yes, it does exist:

    SELECT *
    FROM INFORMATION_SCHEMA.TABLES
    WHERE TABLE_NAME = 'TableName'
    

提交回复
热议问题