在SQL Azure中检查表是否存在

4

有人能帮我检查一下在SQL Azure中表是否存在吗?


你在询问这个 - http://stackoverflow.com/questions/8915521/checking-if-database-exists-or-not-in-sql-azure - PinnyM
1个回答

8
使用以下查询 -
SELECT
  *
FROM
  sys.tables t
JOIN
  sys.schemas s
    ON t.schema_id = s.schema_id
WHERE
  s.name = 'dbo' AND t.name = 'table1'

请指定您的模式和表名。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接