mysql判断字段是否存在的方法
时间:2024-01-22 17:25:54
1. desc 命令
格式: desc tablename columnname
例子:
desc `table` `mid`
desc `table` '%abc%'
2. show columns 命令
格式: show columns from tablename like columnname
例子:
show columns from `table` like 'mid'
show columns from `table` like '%abc%'
3. describe 命令
格式: describe tablename columnname
describe 相當于 show columns from
例子:
describe `table` `mid`
describe `table` '%abc%'
标签:判断字段存在
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
JS实现动画兼容性的transition和transform实例分析
2024-04-17 10:00:17
Keras 多次加载model出错的解决方案
2023-11-01 20:52:35
Python实现五子棋联机对战小游戏
2023-10-21 05:25:42
![](https://img.aspxhome.com/file/2023/4/120914_0s.gif)
几个MySQL高频面试题的解答
2024-01-19 05:13:49
![](https://img.aspxhome.com/file/2023/3/129873_0s.png)
利用OpenCV+Tensorflow实现的手势识别
2022-04-03 02:12:33
![](https://img.aspxhome.com/file/2023/3/128503_0s.png)
Python关于拓扑排序知识点讲解
2022-09-12 15:04:22
![](https://img.aspxhome.com/file/2023/8/127248_0s.png)
sqlserver 修改列名及表名的sql语句
2012-07-11 15:58:46
SqlServer系统数据库的作用深入了解
2024-01-28 07:29:35
Python中的文本相似度的计算方法总结
2021-02-08 08:40:37
python3使用diagrams绘制架构图的步骤
2022-08-27 12:42:34
![](https://img.aspxhome.com/file/2023/8/87458_0s.png)
ASP.NET 2.0防止同一用户同时登录
2007-10-03 14:30:00
Dreamweaver小技巧:超高速下载图像
2009-07-14 21:59:00
![](https://img.aspxhome.com/file/UploadPic/20072/20072311307259s.jpg)
让Django支持Sql Server作后端数据库的方法
2024-01-25 13:58:56
Python基于随机采样一至性实现拟合椭圆(优化版)
2021-10-19 15:08:36
PHP小白必须要知道的php基础知识(超实用)
2024-05-13 09:56:42
![](https://img.aspxhome.com/file/2023/4/126224_0s.png)
python缩进区别分析
2022-05-18 00:37:50
Mysql中TIMESTAMPDIFF函数的语法与练习案例
2024-01-28 18:43:44
![](https://img.aspxhome.com/file/2023/7/128067_0s.png)
详解python中的闭包
2023-09-25 13:37:33
vue cli2 和 cli3去掉eslint检查器报错的解决
2024-05-29 22:23:31
![](https://img.aspxhome.com/file/2023/0/123170_0s.png)
python-docx 页面设置详解
2021-12-06 03:42:02
![](https://img.aspxhome.com/file/2023/1/76081_0s.png)