sql - Combine several values from text file to one value in postgresql database -
i need copy content of textfile (not csv) postgres/postgis database simple sql script.
the textfile looks like
#date value 2007 11 29 9 29 14.830 4.1 2007 12 7 21 46 25.560 5.3
so date compound 6 values (year, month, day, hour, minute, second). have 1 timestamp
field in db date should stored (as one single value).
i know can use copy
command copy each column value of file column value in database,
copy mydb myvalues.txt;
but need combine several values text file 1 value in database.
sorry if question has been asked, don't know how search started sql.
Comments
Post a Comment