【发布时间】:2011-07-17 14:16:08
【问题描述】:
entrym='entry'
entrym=entrym+ str(idx)
cursor.execute("INSERT INTO im_entry.test ("+entrym+") VALUES ('"+p+"');")
我正在使用这样的查询,其中entry1、entry2 等是我的数据库表。该程序没有显示任何错误,但p 值没有插入到数据库中。这里有什么问题?请帮我。
【问题讨论】:
标签: python database postgresql