mysql 导出csv格式数据
mysql -e "select * from newsdb.t_hk_stock_news where id <100 limit 5" > /db/test.csv
更多内容
mysql -e "select * from newsdb.t_hk_stock_news where id <100 limit 5" > /db/test.csv
更多内容
安装下载安装包http://datax-opensource.oss-cn-hangzhou.aliyuncs.com/datax.tar.gz 然后解压进入解压后文件的./bin自检命令python datax.py ../j...
安装centos系统 9.6版本# Install the repository RPMsudo yum install -y https://download.postgresql.org/pub/repos/yum/repor...
最近公司提供了一台新的服务器,同时有一个盘是ssd。同时为了测试postgresql的性能,将数据放置到ssd上系统centos7.9 数据库postgresql-9.6首先停掉数据库systemctl stop pos...
系统:centos,版本:postgresql-9.6因为要测试postgresql的性能,当多次查询的时候查询结果会因为缓存用时很短,不能模拟出现实使用的场景。因此需要清除缓存。首先stop掉postgresqlsystemctl sto...
查看数据库的大小 select pg_database_size('test'); select pg_size_pretty(pg_database_size('test');查看单...
truncate table 表名...