数据库
首页 > 数据库> > c# – 检查SQL Azure中是否存在表

c# – 检查SQL Azure中是否存在表

作者:互联网

任何人都可以帮我检查sql azure中是否存在表格?

解决方法:

使用此查询 –

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

…指定您的架构和表名称.

标签:c,mysql,azure-sql-database
来源: https://codeday.me/bug/20190613/1234473.html