mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
create-table now supports multiple --pk, refs #620
This commit is contained in:
parent
1dc5da3e5d
commit
23be5be1dc
3 changed files with 13 additions and 3 deletions
|
|
@ -1909,6 +1909,8 @@ This will create a table called ``mytable`` with two columns - an integer ``id``
|
|||
|
||||
You can pass as many column-name column-type pairs as you like. Valid types are ``integer``, ``text``, ``float`` and ``blob``.
|
||||
|
||||
Pass ``--pk`` more than once for a compound primary key that covers multiple columns.
|
||||
|
||||
You can specify columns that should be NOT NULL using ``--not-null colname``. You can specify default values for columns using ``--default colname defaultvalue``.
|
||||
|
||||
.. code-block:: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue