千里
  • 🔎 搜索
  • 📝 文章
  • 📅 归档
  • 🎯 关于
主页 » 标签

Syscolumns

sql server全库字段查询

有时忘记某个字段在数据库中的哪个表里了,可以利用syscolumns来进行查找。 select object_name(id) objName,Name as colName from syscolumns where (name like'%模糊被查找字段%') and id in(select id from sysobjects where xtype='u') order by objname;

August 13, 2024 · Leon
© 2025 千里 · 蜀ICP备15020595号 & 川公网安备51010502011274号