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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -