当前位置:网站首页>All table queries and comment description queries of SQL Server
All table queries and comment description queries of SQL Server
2022-04-23 19:08:00 【Little brother】
Study SQL Server when , Yes 2 Special query statement , I'd like to record it , One is to query all database tables in the database , The second is to query the description field in the database table
1、 Query all the database tables in the database
select * from sysobjects where xtype = 'u' and name != 'sysdiagrams'
2、 Query the description field in the database table
SELECT A.name AS table_name,B.name AS column_name,C.value AS column_description
FROM sys.tables A INNER JOIN sys.columns B
ON B.object_id = A.object_id LEFT JOIN sys.extended_properties C
ON C.major_id = B.object_id AND C.minor_id = B.column_id
WHERE A.name =' Fill in the table name of the table to be queried
版权声明
本文为[Little brother]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210601423207.html
边栏推荐
- Practice of Druid SQL and security in meituan review
- Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
- 在渤海期货办理开户安全吗。
- ESP32 LVGL8. 1 - bar progress bar (bar 21)
- Wechat video extraction and receiving file path
- ESP32 LVGL8. 1 - slider slider (slider 22)
- Some records used by VS2010
- Methods of nested recycleview to solve sliding conflict and incomplete item display
- Practice of Druid SQL and security in meituan review
- SSDB Foundation
猜你喜欢

Summary of actual business optimization scheme - main directory - continuous update

ESP32 LVGL8. 1 - arc (arc 19)

ESP32 LVGL8. 1 - img picture (IMG 20)

Wechat applet part of the mobile phone Preview PDF did not respond

One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)

ESP32 LVGL8. 1 - bar progress bar (bar 21)

The difference between ordinary inner class and static inner class

redis优化系列(三)解决主从配置后的常见问题

Introduction to ROS learning notes (I)

Openharmony open source developer growth plan, looking for new open source forces that change the world!
随机推荐
#yyds干货盘点#stringprep --- 因特网字符串预备
Practice of Druid SQL and security in meituan review
剑指 Offer II 116. 省份数量-空间复杂度O(n),时间复杂度O(n)
Raspberry pie 18b20 temperature
SSDB Foundation
Redis optimization series (III) solve common problems after master-slave configuration
Using bafayun to control the computer
Yyds dry goods inventory stringprep --- Internet string preparation
The difference between ordinary inner class and static inner class
Treatment of incomplete display of listview height
2022.04.23(LC_763_划分字母区间)
Redis common interview questions
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
An 8266 crash
mysql通过binlog恢复或回滚数据
中金财富怎么样?在上边开户安全吗
One stop service platform for high-level talents and development of comprehensive service platform system for talents
mysql_linux版本的下载及安装详解
ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)