大家好,又见面了,我是你们的朋友全栈君。
#!/usr/bin/env python
# _*_ coding: utf-8 _*_
import psycopg2
db = psycopg2.connect("dbname=linxerp user=postgres")
vals = db.cursor()
vals.execute("select id from ir_translation where value='产品接收证明单号: ';")
tables = vals.fetchall()
for table in tables:
information = "update ir_translation set value='产品验收证明单号: ' where id="+str(table[0])+";"
print information
vals.execute(information)
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/129432.html原文链接:https://javaforall.net