Update README.md

This commit is contained in:
Kenneth M 2015-08-04 10:52:46 -04:00
parent 347dd3074f
commit 3e281b09e7

View File

@ -30,8 +30,14 @@ PRIMARY KEY ('id')
``` ```
To insert a row of data: To insert a row of data:
```py ```py
c.execute("INSERT INTO users VALUES(?,?,?)", (name, account, balance)) c.execute("INSERT INTO users(name, account, balance) VALUES(?,?,?)", (name, account, balance))
``` ```
**Note: ** You must specify the columns names otherwise sqlite3 will default to all columns.
```py
```
Sandbox! dir() and help() the cursor for all the methods possible. Sandbox! dir() and help() the cursor for all the methods possible.
What does executemany do? What does executemany do?