To import data from a database we can use the copy from command as described here
-make sure that the object already exists(the DDL) on the database, if not get the DDL of it with the function and create on the new database, to do so use the following commands:
vsql$:>selectexport_objects('','obj name');
After this run the output on to the target database.
Test the " CONNECT " command:
-the connect command enables you to connect to another Vertica database that will subsequently enable export and copy from commands.
Syntax of the CONNECT command is :