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
相關文章
相關標籤/搜索