Created
March 21, 2022 14:22
-
-
Save gonaumov/e97b84bee7e1e6338a52ac063cc7ec9d to your computer and use it in GitHub Desktop.
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
awk -F "," '{print "INSERT INTO table_name(\"first_field\",\"second_field\") VALUES('\''"$1"'\'','\''"$2"'\'') ON CONFLICT DO NOTHING;"}' CSVFileNAme.csv > V1.22_migration_name.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment