当前位置:网站首页>Mysql 通过表明获取字段以及注释
Mysql 通过表明获取字段以及注释
2022-06-24 19:29: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 = ( '你的表名' )
ORDER BY
ordinal_position;
边栏推荐
- Excel布局
- Data link layer & some other protocols or technologies
- 02--- impossible phenomenon of longitudinal wave
- LeetCode-513. 找树左下角的值
- 【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter
- [product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial
- 手动事务的几个类
- leetcode1720_2021-10-14
- Object.defineProperty和Reflect.defineProperty的容错问题
- Prompt that the device has no permission when using ADB to connect to the device
猜你喜欢
leetcode-201_2021_10_17
123. the best time to buy and sell shares III
Pattern recognition - 9 Decision tree
Li Kou daily question - day 26 -496 Next larger element I
[product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial
C语言-关键字1
Implementing DNS requester with C language
Blender FAQs
Intelligent fish tank control system based on STM32 under Internet of things
Multithreaded finalization
随机推荐
Kubernetes 集群中流量暴露的几种方案
双链表实现
Volcano becomes spark default batch scheduler
[product design and R & D collaboration tool] Shanghai daoning provides you with blue lake introduction, download, trial and tutorial
LeetCode-513. 找树左下角的值
直击“三夏”生产:丰收喜报频传 夏播紧锣密鼓
Structured interview of state-owned enterprises and central enterprises employment of state-owned enterprises Modou Interactive Employment Service steward
使用region折叠代码
cv2导包时报Could not find a version that satisfies the requirement cv2 (from versions: none)
VSCode无网环境快速迁移开发环境(VIP典藏版)
socket(1)
机器学习:线性回归
Blender's simple skills - array, rotation, array and curve
[Web Security Basics] some details
Unity about conversion between local and world coordinates
【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter
[notes of wuenda] fundamentals of machine learning
PKI notes
在每个树行中找最大值[分层遍历之一的扩展]
leetcode-201_ 2021_ 10_ seventeen