Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8024353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:50:51+00:00 2026-06-04T22:50:51+00:00

What is the syntax for importing an external table into a created table? Whenever

  • 0

What is the syntax for importing an external table into a created table? Whenever I right click on a table in squirrelsql, and click import file, I always get the error message “A database error has occurred. I suspect that Netzilla does not support file imports. How do I use the NZload utility to import the table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T22:50:52+00:00Added an answer on June 4, 2026 at 10:50 pm

    Here’s an example on how to load external data using jdbc. Most of these commands can also be run in the nzsql client. In your case just make sure your table definition for your table and the external file is in the same order, to simplify things.

    Your real table in Netezza:

    LABDB(ADMIN)=> CREATE TABLE REAL_TABLE (c1 int, c2 char(1), c3 char(1));
    CREATE TABLE
    Elapsed time: 0m0.047s
    

    Your file to import: c:\test.file, with content:

    1|a|x
    2|b|z
    

    Create your external table:

    LABDB(ADMIN)=> CREATE EXTERNAL TABLE EXT_TEST SAMEAS REAL_TABLE USING (DATAOBJECT('C:\test.file') REMOTESOURCE 'JDBC');
    CREATE EXTERNAL TABLE
    Elapsed time: 0m0.015s
    

    Check the data in your external table, using your squirrelsql or similar:
    SquirrelSQL Select from EXTERNAL TABLE

    Displaying empty real_table:

    LABDB(ADMIN)=> SELECT * FROM real_table;
     C1 | C2 | C3
    ----+----+----
    (0 rows)
    
    Elapsed time: 0m0.063s
    

    Now you can insert into your real table from the external table, using SquirrelSQL or similar:
    INSERT INTO REAL_TABLE SELECT * FROM EXT_TEST;

    Finally confirm the data in the real_table:

    LABDB(ADMIN)=> SELECT * FROM real_table;
     C1 | C2 | C3
    ----+----+----
      2 | b  | z
      1 | a  | x
    (2 rows)
    
    Elapsed time: 0m0.074s
    

    And drop the external table, this will not remove the file you used to load.

    LABDB(ADMIN)=> DROP TABLE EXT_TEST;
    DROP TABLE
    Elapsed time: 0m0.018s
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am importing data from a flat file into a normalized table structure. I
I'm importing a CSV file into Ruby (1.8.7). File.open('path/to/file.csv').read returns this in the console:
I always wondered why the syntax for importing specific objects from a module is
I'm importing some entries into a MYSQL table and it breaks on one of
I'm using python 2.6 and get the following when importing a module: File ./test-nmea-uploader.py,
Right now I'm importing and transforming data into an Oracle database as follows: A
I have a sqlite syntax error. What is incorrect? my code: + (void)insertUpdateCatalogTime:(NSString *)time
I keep getting an syntax error during runtime when this query is called. adoquery1.Active
I'm importing SVGs with imagick using this syntax $graphic = new Imagick($this->img); The problem
Can You Import an Excel File to a MySQL Database using phpMyAdmin? I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.