Update README.md
This commit is contained in:
parent
347dd3074f
commit
3e281b09e7
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user