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

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

方法一:

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


方法二:

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


—— 完 ——
  • 关于SQL中COUNT()函数的用法
  • 内存占用高,你的数据库该如何优化?
  • 在Widows操作系统下,要获取某个网络开放端口所对应的应用程序信息,可以使用命令()。
  • DBMS和电子表格的区别
  • The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
  • C#操作SQLite方法实例详解
  • Teradata和Cassandra的区别
  • 信息通过网络进行传输的过程中,存在着被篡改的风险
  • 设计不好的关系模式存在的问题
  • You have an error in your SQL syntax; check the manual that corresponds to your MySQL

© CopyRight 2014~2024 薄学网.