I have a text file that contains data in the following format:
char char char char
#1 a b c
char char char dateTime
#2 d e 20-12-2012
#3 g h 8-12-2013
I have created 2 tables in PostgreSQL: one with the following datatype structure: (varchar, varchar, varchar, varchar) (for the #1 a b c record).
The second table that is supposed to hold the rest of the data and has been designed with the following datatype structure: (varchar,varchar,varchar, dateTime). Now, what I'd like to do is load the data given above into my PostgreSQL DB. However, since I am new to PostgreSQL, I am not sure how to load data stored in a text file into the database. Could anybody please give me suggestions on how I should go about doing this?