在Python中使用ORM访问PostgreSQL数据库
使用Python访问PostgreSQL数据库需要安装相应的库,比较常用的有psycopg2
和PyGreSQL
。这里我们以psycopg2
为例:
psycopg2
库pip install psycopg2
使用Python访问PostgreSQL数据库需要安装相应的库,比较常用的有psycopg2
和PyGreSQL
。这里我们以psycopg2
为例:
psycopg2
库pip install psycopg2