On Wed, 16 May 2012 09:06:56 +0200
Ottavio Campana <ottavio(at)campana(dot)vi(dot)it> wrote:
>
> and that you perform this command in psql
>
> mydb=# INSERT INTO xxx_test values (default, 'ciao');
> INSERT 0 1
> mydb=#
>
> In python I do
>
> cursor = connection.cursor ()
> cursor.execute (command)
> connection.commit ()
>
> with command being the insert command. Now the question is: is there
> a way to get the "INSERT 01" back?
>
Is this what you are looking for :
cursor.execute(command)
cursor.statusmessage
e
--
Egbert Bouwman