当前位置:网站首页>MySQL gets fields and comments by indicating
MySQL gets fields and comments by indicating
2022-06-24 21:59:00 【Vransy.】
SELECT
column_name,
( CASE WHEN ( is_nullable = 'no' && column_key != 'PRI' ) THEN '1' ELSE NULL END ) AS is_required,
( CASE WHEN column_key = 'PRI' THEN '1' ELSE '0' END ) AS is_pk,
ordinal_position AS sort,
column_comment,
( CASE WHEN extra = 'auto_increment' THEN '1' ELSE '0' END ) AS is_increment,
column_type
FROM
information_schema.COLUMNS
WHERE
table_schema = (
SELECT DATABASE
())
AND table_name = ( ' Your watch name ' )
ORDER BY
ordinal_position;
边栏推荐
- 栈的两种实现方式
- leetcode_1365
- Minimum spanning tree based on Kruskal
- Machine learning: gradient descent method
- Drag drag drag
- 【Camera基础(二)】摄像头驱动原理和开发&&V4L2子系统驱动架构
- Multiplexer select
- Object.defineProperty和Reflect.defineProperty的容错问题
- [camera Foundation (I)] working principle and overall structure of camera
- 降低pip到指定版本(通过cmp升级pip,在降低到原来版本)
猜你喜欢
随机推荐
openGauss内核:简单查询的执行
【无标题】
leetcode_ 191_ 2021-10-15
After Firefox drag and drop, Baidu search will always be opened by default. If it is a picture, the picture will be opened.
Interviewer: you said you are proficient in redis. Have you seen the persistent configuration?
即构「畅直播」上线!提供全链路升级的一站式直播服务
CV2 package guide times could not find a version that satisfies the requirement CV2 (from versions: none)
将二维数组方阵顺时针旋转90°
Installing Oracle without graphical interface in virtual machine centos7 (nanny level installation)
Transport layer UDP & TCP
火狐拖放后,总会默认打开百度搜索,如果是图片,则会打开图片。
socket(1)
leetcode-201_2021_10_17
A deep learning model for urban traffic flow prediction with traffic events mined from twitter
leetcode_1470_2021.10.12
如何化解35岁危机?华为云数据库首席架构师20年技术经验分享
TCP RTT测量妙计
基于kruskal的最小生成树
03--- antireflective film
02--- impossible phenomenon of longitudinal wave