codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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?