当前位置: 首页 > news >正文

SQLSERVER查看包含某个字段的所有表

查看包含某个字段的所有表:

select [name] from sysobjects where [id] in (select[id] from syscolumns where [name] = 'nettime') ORDER BY Name

select [name] from sysobjects where [id] in (select[id] from syscolumns where [name] = 'loadtime') ORDER BY Name

查看表名包含某个字符串的所有表:

SELECT Name FROM SysObjects Where XType='U' and name like '%loadtime%' ORDER BY Name
查看包括某个字符串的所有存储过程:

select distinct(name) from sysobjects o, syscomments s where o.id = s.id and text like '%loadtime%' and o.xtype = 'P' order by name

http://www.lryc.cn/news/436100.html

相关文章:

  • 【编程基础知识】mysql中的insert into ... on DUPLICATE key和replace into的性能对比
  • 【CSS in Depth 2 精译_024】4.2 弹性子元素的大小
  • 你需要尝试的5种讲故事模板
  • 只需两步便可生成 51 单片机最精准的延时函数
  • TETFN情感计算的实践复现(论文复现)
  • 游戏各个知识小点汇总
  • Python设计模式实战:开启软件设计的精进之旅
  • 用RNN(循环神经网络)预测股票价格
  • 08-图7 公路村村通(C)
  • Java-sleep()、wait()、join()、yield()的区别
  • Linux命令的补全和自动完成完全开启
  • Deep Active Contours for Real-time 6-DoF Object Tracking
  • IDEA安装教程配置java环境(超详细)
  • Excel文档的读取(1)
  • Linux:体系结构和操作系统管理
  • c++ install boost lib
  • 文件加密最简单的方法有哪些?十个电脑文件加密方法【超详细】
  • IPv6地址的表示方法
  • Kubernetes 之 kubelet 与 CRI、CNI 的交互过程
  • 【python】OpenCV—Age and Gender Classification
  • python安装换源
  • JavaScript练手小技巧:利用鼠标滚轮控制图片轮播
  • 搭建Eureka高可用集群 - day03
  • 并行程序设计基础——并行I/O(2)
  • Java三种创建多线程的方法
  • 828华为云征文 | 云上私人数据管家,jMalCloud个人网盘在华为云Flexus的Docker化部署实践
  • C# 开源教程带你轻松掌握数据结构与算法
  • 由一个 SwiftData “诡异”运行时崩溃而引发的钩深索隐(五)
  • python爬虫基础:了解html
  • spring security OAuth2 客户端接入gitee