postgresql-python读写方法
def read_data():
#读
import psycopg2
import pandas as pd
conn = psycopg2.connect(database='', user="", password="", host="", port="5432")
cur = conn.cursor()
cur.execute('select * from "db_name"')
columns = [column[0] for column.
原创
2021-12-28 10:45:58 ·
939 阅读 ·
0 评论