python读取json文件存取pgsql数据库

1、首先要下载安装psycopg2包 2.建库建表 create table testdb  (  int id, text json  ); 3.读取现有的json文件 def readfile(rpath): with open(rpath, 'r') as load_f: load_dict = json.load(load_f) return load_di
相关文章
相关标签/搜索