Created
July 7, 2015 13:08
-
-
Save openrijal/dbcf99729a43d86e7af8 to your computer and use it in GitHub Desktop.
Django Related
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to import data from csv to table | |
\copy <table_name> from '/path/to/csv/filename.csv' DELIMITERS ',' CSV; | |
# to increase the auto_increment after import | |
ALTER SEQUENCE tblName_id_seq RESTART WITH <number>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment