20 lines
513 B
Python
20 lines
513 B
Python
import uuid
|
|
|
|
import psycopg2
|
|
|
|
G = 'host=210.77.68.250 port=5432 dbname=geobrought user=brought password=g214G214'
|
|
GT = 'host=210.77.68.250 port=5432 dbname=brought user=brought password=g214G214'
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
with psycopg2.connect(G) as connection:
|
|
with connection.cursor() as cursor:
|
|
cursor.execute('select * from test1;')
|
|
results = cursor.fetchall()
|
|
for r in results:
|
|
id = r[0]
|
|
cursor.execute('update added = ')
|
|
|
|
|