【发布时间】:2012-10-20 02:00:22
【问题描述】:
我在努力
title = "Title here"
url = "http://www.mysite.com/url-goes-here"
cursor.execute("""INSERT INTO `videos_justicevids` (`title`, `pageurl`) VALUES (%s, %s)""",(title, url))
我没有收到错误,但它没有插入到数据库中。
【问题讨论】:
我在努力
title = "Title here"
url = "http://www.mysite.com/url-goes-here"
cursor.execute("""INSERT INTO `videos_justicevids` (`title`, `pageurl`) VALUES (%s, %s)""",(title, url))
我没有收到错误,但它没有插入到数据库中。
【问题讨论】:
你需要提交它。
connection.commit()
【讨论】: