Re: how to update a table

"hopfgartner" <[email protected]>
Newsgroups gmane.comp.python.sybase
Message-ID <[email protected]>
On Sun, 8 Dec 2002 00:42:56 -0800 (PST)
 ghostdog <[email protected]> wrote:
> 
> hi
> 
> how do i update a table using the execute() method?
> 
> cheers
> 

Should be simply:


import Sybase

sql_conn = Sybase.connect(dsn, user, password, database)
sql_cursor = sql_conn.cursor()
sql_cursor.execute('UPDATE my_table SET my_col = whatever
WHERE where_condition')


Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.