我需要知道如何将10个数据表从一个数据库导出为csv格式,每天使用cron作业?
我知道这个剧本:
SELECT *
FROM TABLE NAME
INTO OUTFILE '/var/lib/mysql-files/BACKUP.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n';
但是,如何在同一行中添加另外9个表呢?
诚挚的问候!
这里是python noob。
我有一个dataframe people,其中name和text作为两列。
name text
0 Obama Obama was the 44th president of the...
1 Trump Donald J. Trump ran as a republican...
我只需要对Obama进行一些探索性分析。
obama= people[people['name'] == 'Obama'].copy()
obama.text
35817 Obama was the 44th