![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
如风Z
new
展开
-
mysql查询数据库中所有字段的属性
大型项目中数据库中有成百上千张表,想要统计数据库中相同的字段名,不同的长度或类型,所有的字段属性。 利用简单的SQL帮助我们进行统计。1.查询数据库中某个库所有字段的属性(指定数据库库名),若想查询所有去掉where条件即可select * from information_schema.columns where table_schema= '数据库库名'2.查询数据库中指定库指定表所有字段的属性(指定数据库库名和表名)select * from information_schema.colu原创 2020-05-30 14:39:28 · 6689 阅读 · 0 评论 -
Linux开启/关闭/重启防火墙等命令
1.首先查看防火墙状态running 代表已开启not running 代表没有开启[root@localhost ~]# firewall-cmd --statenot running2.开启防火墙[root@localhost ~]# systemctl start firewalld 3.关闭防火墙[root@localhost ~]#systemctl stop firewalld4.重启防火墙[root@localhost ~]# systemctl restart原创 2020-05-28 22:39:05 · 7295 阅读 · 2 评论