mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-25 10:24:32 +02:00
Docs for compound primary keys with CLI
This commit is contained in:
parent
f47b5a9e19
commit
be9ff64940
2 changed files with 3 additions and 1 deletions
|
|
@ -200,6 +200,8 @@ Here's the simplest possible example::
|
|||
|
||||
To specify a column as the primary key, use ``--pk=column_name``.
|
||||
|
||||
To create a compound primary key across more than one column, use ``--pk`` multiple times.
|
||||
|
||||
If you feed it a JSON list it will insert multiple records. For example, if ``dogs.json`` looks like this::
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue