gpt4 book ai didi

mysql - InfoBright - 将数据从一个表加载到另一个表

转载 作者:行者123 更新时间:2023-11-30 23:00:13 27 4
gpt4 key购买 nike

有没有一种方法可以像从文件中一样使用 LOAD DATA 样式将数据插入 InfoBright 表

LOAD DATA INFILE '/usr/tmp/file2.txt' 
INTO TABLE test_table1
FIELDS TERMINATED BY ',' ENCLOSED BY '"';

mysql> select * from test_table1;
+------+-------------------+-----------+
| id | textfield | numerical |
+------+-------------------+-----------+
| 1 | one, two or three | 1234 |
| 1 | one, two or three | 1234 |
+------+-------------------+-----------+
2 rows in set (0.00 sec)


最佳答案

是的,你可以(编辑:但仅限于外部数据)

事实上,如果您使用的是 Infobright 的社区版,这是将数据导入 Infobright 表的唯一方法之一。 Infobright Community Edition 不支持允许 INSERT 命令的 DML。

Infobright 实际上在他们的网站和论坛上有很多很好的文档和示例。

编辑:根据您的评论进行更新(再次假设是社区版)

如果您想将数据从 InfoBright 中的一个表获取到另一个表中,您需要从外部数据源重新导入它。

关于mysql - InfoBright - 将数据从一个表加载到另一个表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24418659/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com