当前位置:网站首页>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;
边栏推荐
- 建木持续集成平台v2.5.0发布
- suspense组件和异步组件
- 02---纵波不可能产生的现象
- 优雅的自定义 ThreadPoolExecutor 线程池
- Excel布局
- 架构实战营 第 6 期 毕业总结
- PyCharm 中出现Cannot find reference ‘imread‘ in ‘__init__.py‘
- Antdb database online training has started! More flexible, professional and rich
- 堆排序和快速排序原理实现
- 【论】Deep learning in the COVID-19 epidemic: A deep model for urban traffic revitalization index
猜你喜欢

Pattern recognition - 9 Decision tree

Web project deployment

【论】Deep learning in the COVID-19 epidemic: A deep model for urban traffic revitalization index
![[notes of Wu Enda] convolutional neural network](/img/19/2cac17010c29cbd5ba245de105d6c1.png)
[notes of Wu Enda] convolutional neural network

平衡二叉搜索树

字节的软件测试盆友们你们可以跳槽了,这还是你们心心念念的字节吗?

Shengzhe technology AI intelligent drowning prevention service launched

Implementing DNS requester with C language
![[camera Foundation (I)] working principle and overall structure of camera](/img/5d/c29d636a90d01e5c3852df2a0dd833.png)
[camera Foundation (I)] working principle and overall structure of camera

介绍BootLoader、PM、kernel和系统开机的总体流程
随机推荐
【吴恩达笔记】机器学习基础
【吴恩达笔记】多变量线性回归
leetcode1720_2021-10-14
Slider controls the playback progress of animator animation
(to be added) games101 job 7 improvement - knowledge you need to know to realize micro surface model
机器学习:梯度下降法
Fuzhou business office of Fujian development and Reform Commission visited the health department of Yurun university to guide and inspect the work
Antdb database online training has started! More flexible, professional and rich
Jianmu continuous integration platform v2.5.0 release
Graduation summary of phase 6 of the construction practice camp
栈的两种实现方式
Network layer & IP
Sslhandshakeexception: no subject alternative names present - sslhandshakeexception: no subject alternative names present
ST表+二分
Redis+Caffeine两级缓存,让访问速度纵享丝滑
leetcode1863_2021-10-14
[精选] 多账号统一登录,你如何设计?
我国SaaS产业的发展趋势与路径
拖动拖动拖动
Based on asp Net development of fixed assets management system source code enterprise fixed assets management system source code