get到一点小知识

80 阅读1分钟

1,如何快速提取文件夹中的所有文件名?

首先,大家打开需要提取文件名的文件夹,在文件夹中建立一个“文本文档

接下来,在文档中输入代码“dir ./b >name.txt

之后将文件的后缀名修改为“bat

如何快速提取文件夹中的所有文件名?

双击“dir(显示文件列表)”.bat 文件,生成name.txt文本文件。

2,怎么用Sql语句获取一个数据库中的所有表的名字

SELECT 

table_name 

FROM

information_schema.tables 

WHERE table_schema = 'mydatabasename' 

AND table_type = 'base table'

3,mysql怎么查询数据库有多少张表

select count(*) tables,tables_schema from information_schema.tables where table_schema = 'dbname' group by table_schema