You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.rst
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -518,6 +518,17 @@ You can import that using::
518
518
519
519
Passing ``--delimiter``, ``--quotechar`` or ``--sniff`` implies ``--csv``, so you can omit the ``--csv`` option.
520
520
521
+
.. _cli_insert_csv_tsv_no_header:
522
+
523
+
CSV files without a header row
524
+
------------------------------
525
+
526
+
The first row of any CSV or TSV file is expected to contain the names of the columns in that file.
527
+
528
+
If your file does not include this row, you can use the ``--no-headers`` option to specify that the tool should not use that fist row as headers.
529
+
530
+
If you do this, the table will be created with column names called ``untitled_1`` and ``untitled_2`` and so on. You can then rename them using the ``sqlite-utils transform ... --rename`` command, see :ref:`cli_transform_table`.
0 commit comments