1
but0n Jun 11, 2016 via iPhone
一种是使用光标,一种不使用光标。
有一些操作是光标的方法,有些则不用。 |
3
Neveroldmilk Jun 12, 2016
在子集里使用 cursor ,可以提高操作效率,不过缺陷是需要本地缓存一部分数据。不使用 cursor 直接执行 SQL 命令则不会在本地缓存数据,但是全程依赖远程服务器,断网就完了。
|
4
FreeBTC123 Jun 12, 2016 https://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.execute
``` execute(sql[, parameters]) This is a nonstandard shortcut that creates an intermediate cursor object by calling the cursor method, then calls the cursor ’ s execute method with the parameters given. ``` |