【问题标题】:Checking if table exists or not in SQL Azure在 SQL Azure 中检查表是否存在
【发布时间】:2012-01-25 16:47:32
【问题描述】:

谁能帮我检查一下 sql azure 中是否存在表?

【问题讨论】:

标签: c# mysql azure-sql-database


【解决方案1】:

使用这个查询 -

SELECT
  *
FROM
  sys.tables t
JOIN
  sys.schemas s
    ON t.schema_id = s.schema_id
WHERE
  s.name = 'dbo' AND t.name = 'table1'

...指定您的架构和表名。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2010-10-02
    • 2011-07-21
    • 2012-02-13
    • 2018-10-18
    • 2010-09-15
    • 2019-11-25
    • 1970-01-01
    相关资源
    最近更新 更多