Skip to main content

Vertica copy

  • February 28, 2017
  • 2 replies
  • 11 views

muthukrm

i have 3 attributes in my source file and table is having 4 attributes and i want to default 3rd attribute with default values and other 3 from source file. will vertica copy allow ? if yes what will be the syntax.?

2 replies

Forum|alt.badge.img+2
  • Participating Frequently
  • March 3, 2017

copy table (c1,c2,c4) from '/tmp/sourcefile.dat' direct; -- I have skipped c3 column from my table .


muthukrm
  • Author
  • New Participant
  • March 17, 2017

i found the syntax and its working ..
copy ( c1, c2, c3. 'adf'as c4) from 'path' [ arguments]