Are there Python ways to execute queries on PostgreSQL without getting data over?

Mats Wichmann mats at python.org
Sun Oct 18 08:37:49 EDT 2020


On 10/18/20 5:53 AM, Shaozhong SHI wrote:
> Are there Python ways to execute queries on PostgreSQL without getting data
> over?
> 
> Are there ways just to fire off PostgreSQL queries and not get data into
> Python?
> 
> Regards,
> 
> David
> 

When you "execute" the query, you don't get back the data, just a row
count. You then have to use one of the "fetch" functions to actually
retrieve it.  Is that what you're asking?




More information about the Python-list mailing list