Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
posrgresql/mysql:在linux中提取数据以增量方式添加到原始文件中?_Mysql_Postgresql - Fatal编程技术网

posrgresql/mysql:在linux中提取数据以增量方式添加到原始文件中?

posrgresql/mysql:在linux中提取数据以增量方式添加到原始文件中?,mysql,postgresql,Mysql,Postgresql,在linux中,如何从posrgresql/mysql中选择数据添加到原始文件/csv中 原始文件/csv: +------+------+------+ | col1 | col2 | col3 | +------+------+------+ | a | 1 | A | | b | 2 | B | | c | 3 | C | +------+------+------+ +------+------+------+ | col1 | c

在linux中,如何从posrgresql/mysql中选择数据添加到原始文件/csv中

原始文件/csv:

+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| a    |    1 | A    |
| b    |    2 | B    |
| c    |    3 | C    |
+------+------+------+
+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| a    |    1 | A    |
| b    |    2 | B    |
| c    |    3 | C    |
| d    |    4 | D    |
+------+------+------+
从表格A中选择*

+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| d    |    4 | D    |
+------+------+------+
在文件/csv上添加选定行:

+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| a    |    1 | A    |
| b    |    2 | B    |
| c    |    3 | C    |
+------+------+------+
+------+------+------+
| col1 | col2 | col3 |
+------+------+------+
| a    |    1 | A    |
| b    |    2 | B    |
| c    |    3 | C    |
| d    |    4 | D    |
+------+------+------+

您想使用mysql或postgresl或两者都添加数据吗?他们中的任何一个都很好,但最好使用postgresql@KKK