Example:
Code: Select all
test_db=> CREATE TABLE IPTable (ip INTEGER);
CREATE TABLE
Code: Select all
test_db=> COPY IPTable (anFiller FILLER VARCHAR(15), ip AS INET_ATON(anFiller)) FROM STDIN;
Enter the data to be copied followed by a newline and end with a backslash and a period on a line by itself.
Example:
Code: Select all
>> 209.207.224.40
>> 192.168.1.1
>> \.
Code: Select all
test_db=> select * from IPTable ;
ip
------------
3520061480
3232235777
(2 rows)
PS. Thanks to vertica-forums user sKwa for this great information!