SQL查询数据库里是否存在某个表

2020-04-07 17:21:26 码农 4816

方法一:

select count(1) from sys.objects where name = 'Base_Elevator'


方法二:

select ObjectProperty(Object_ID( 'Base_Elevator'),'IsUserTable')


—— 完 ——
  • 解决 MySQL 5.7 日期不能为 0000-01-01
  • 解决 SQL Server 中 CPU 使用率过高的问题
  • 浏览器建立TCP连接之后,完成一次HTTP请求,是否会断开?
  • SQL中的聚合函数
  • The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
  • 甲公司的生产经营存在季节性,公司的稳定性流动资产为300万元
  • SQL ABS() 函数
  • 无法在当前安全上下文下访问数据库
  • 查询SQL2008数据库文件名称
  • 数据库索引

© CopyRight 2014~2024 薄学网.