当前位置:网站首页>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
边栏推荐
- Client interns of a large factory share their experience face to face
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
- The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
- Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
- Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
- Raspberry pie uses root operation, and the graphical interface uses its own file manager
- SSDB基础1
- Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
- 【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
猜你喜欢
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
JVM的类加载过程
2022.04.23(LC_763_划分字母区间)
2022.04.23 (lc_763_divided into letter interval)
ESP32 LVGL8. 1 - arc (arc 19)
Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
WebView opens H5 video and displays gray background or black triangle button. Problem solved
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
ESP32 LVGL8. 1 - bar progress bar (bar 21)
mysql_ Download and installation of Linux version
随机推荐
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
Wechat video extraction and receiving file path
Druid SQL和Security在美团点评的实践
该买什么设备,Keysight 给你挑好了
PyGame tank battle
Nacos cluster construction and MySQL persistence configuration
Codeforces Round #784 (Div. 4)
MySQL restores or rolls back data through binlog
Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)
Esp32 (UART 485 communication) - 485 communication of serial port (3)
Esp32 (UART ecoh) - serial port echo worm learning (2)
SSDB foundation 1
Get a list of recent apps
Sentinel规则持久化进Nacos
c#:泛型反射
2022.04.23(LC_714_买卖股票的最佳时机含手续费)
C1000k TCP connection upper limit test 1
SSDB基础3
: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
ESP32 LVGL8. 1 - msgbox message box (msgbox 28)