小编VyR*_*VyR的帖子

我无法启动服务器 PostgreSQL 11:“pg_ctl:无法启动服务器”

我在 CentOS Linux 版本 7.5.1804(核心)

当我登录postgres并运行时:

bash-4.2$ /usr/pgsql-11/bin/initdb -D /var/lib/pgsql/11/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /var/lib/pgsql/11/data ... ok
creating subdirectories ... ok
selecting default max_connections ... …
Run Code Online (Sandbox Code Playgroud)

postgresql centos7 postgresql-11

9
推荐指数
2
解决办法
2万
查看次数

从查询中只选择一列:“SHOW TABLE STATUS FROM `DB`”?

可以从查询中只选择一列:“SHOW TABLE STATUS FROM DB”??

我只想从查询中获得的结果中选择 1 或 2 列:

SHOW TABLE STATUS FROM `DB`
Run Code Online (Sandbox Code Playgroud)

我需要这个数据库的所有表,但我不需要列

Max_data_length、Index_length、Data_free、Auto_increment 等...

有可能从这多列中只得到一列导致只有 1 个查询吗?

mysql sql show

3
推荐指数
1
解决办法
501
查看次数

标签 统计

centos7 ×1

mysql ×1

postgresql ×1

postgresql-11 ×1

show ×1

sql ×1