当前位置:网站首页>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;
边栏推荐
- 火狐拖放后,总会默认打开百度搜索,如果是图片,则会打开图片。
- Datakit 代理实现局域网数据统一汇聚
- Graduation design of phase 6 of the construction practice camp
- How to achieve energy conservation and environmental protection of full-color outdoor LED display
- 性能测试工具wrk安装使用详解
- 降低pip到指定版本(通过PyCharm升级pip,在降低到原来版本)
- Network layer & IP
- Xinlou: Huawei's seven-year building journey of sports health
- leetcode_191_2021-10-15
- 【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter
猜你喜欢

Redis+Caffeine两级缓存,让访问速度纵享丝滑

openGauss内核:简单查询的执行

Xinlou: Huawei's seven-year building journey of sports health

多线程收尾

传输层 udp && tcp

基于 KubeSphere 的分级管理实践

That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade

Introduce the overall process of bootloader, PM, kernel and system startup

心楼:华为运动健康的七年筑造之旅

Make tea and talk about heroes! Leaders of Fujian Provincial Development and Reform Commission and Fujian municipal business office visited Yurun Health Division for exchange and guidance
随机推荐
拖动拖动拖动
[notes of Wu Enda] multivariable linear regression
The collection of zero code enterprise application cases in various industries was officially released
STL+树
[untitled]
985测试工程师被吊打,学历和经验到底谁更重要?
#国企央企结构化面试#国企就业#墨斗互动就业服务管家
Redis+caffeine two-level cache enables smooth access speed
Redis+Caffeine两级缓存,让访问速度纵享丝滑
Interviewer: you said you are proficient in redis. Have you seen the persistent configuration?
leetcode1863_2021-10-14
【论】A deep-learning model for urban traffic flow prediction with traffic events mined from twitter
Binary search tree template
Machine learning: gradient descent method
面试官:你说你精通Redis,你看过持久化的配置吗?
leetcode_1470_2021.10.12
TCP RTT测量妙计
[notes of wuenda] fundamentals of machine learning
leetcode1720_ 2021-10-14
03--- antireflective film