将JSON文件加载到数据库
我正在尝试将 json 文本文件复制到 postgres 数据库。 json 看起来
{
"events":
[{
"timestamp": 1298734,
"message": "START RequestId: bjn937645",
"ingestiontime": 123456
}]
}
数据库列是:ingestiontime、message、timestamp 创建表 event_log(时间戳 varchar、消息 varchar、摄取时间 varchar)
I'm attempting to COPY json text file to postgres database. The json looks
{
"events":
[{
"timestamp": 1298734,
"message": "START RequestId: bjn937645",
"ingestiontime": 123456
}]
}
database columns are: ingestiontime, message, timestamp
create table event_log (timestamp varchar, message varchar, ingestion_time varchar)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论