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 7682601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:36:19+00:00 2026-05-31T18:36:19+00:00

SQL> desc FLIGHTS; Name Null? Type —————————————– ——– —————————- FLNO NUMBER(38) FROM VARCHAR2(64) TO

  • 0
SQL> desc FLIGHTS;
 Name                                      Null?    Type
 ----------------------------------------- -------- ----------------------------
 FLNO                                               NUMBER(38)
 FROM                                               VARCHAR2(64)
 TO                                                 VARCHAR2(64)
 DISTANCE                                           NUMBER(38)
 DEPARTS                                            DATE
 ARRIVES                                            DATE
 PRICE                                              FLOAT(63)

data file:

99,Los Angeles,Washington D.C.,2308,2005/04/12 09:30,2005/04/12 21:40,235.98
13,Los Angeles,Chicago,1749,2005/04/12 08:45,2005/04/12 20:45,220.98
346,Los Angeles,Dallas,1251,2005/04/12 11:50,2005/04/12 19:05,225.43
387,Los Angeles,Boston,2606,2005/04/12 07:03,2005/04/12 17:03,261.56

and sqlldr control file:

LOAD DATA INFILE 'flights.txt' 
 INTO TABLE Flights 
  FIELDS TERMINATED BY "," 
  ( FLNO
  , FROM
  , TO
  , DISTANCE
  , DEPARTS
  , ARRIVES
  , PRICE)

An exerpt from the error log:

Table FLIGHTS, loaded from every logical record.
Insert option in effect for this table: INSERT

   Column Name                  Position   Len  Term Encl Datatype
------------------------------ ---------- ----- ---- ---- ---------------------
FLNO                                FIRST     *   ,       CHARACTER            
FROM                                 NEXT     *   ,       CHARACTER            
TO                                   NEXT     *   ,       CHARACTER            
DISTANCE                             NEXT     *   ,       CHARACTER            
DEPARTS                              NEXT     *   ,       CHARACTER            
ARRIVES                              NEXT     *   ,       CHARACTER            
PRICE                                NEXT     *   ,       CHARACTER            

Record 1: Rejected - Error on table FLIGHTS, column FROM.
ORA-01747: invalid user.table.column, table.column, or column specification

I am not sure what is wrong with my SQL, but I’m assuming it is because of the FROM entry?

  • 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-05-31T18:36:21+00:00Added an answer on May 31, 2026 at 6:36 pm

    Firstly, calling columns from and to is a bad idea, they’re key-words. Something like origin and destination might be better…

    Secondly, float, this really isn’t needed. The chances of you needing a price to 63 decimal places is remote. Something like number(18,2) should be more than sufficient (ridiculous in fact), but if you want the absolute maximum use number(38,2).

    My last pre-answer point is your datafile. If at all possible get your supplier to change this. A comma delimited file is just asking for trouble… there are far too many ways for a comma to be in the data. If you can have it | or ¬ delimited it’s better as they’re hardly ever used in text.

    Depending on your NLS_PARAMETERS, there’s no guarantee that the date in the file will be altered into the date you need in your table. It’s best to explicitly specify this on entry into the database like this:

    LOAD DATA 
     INFILE 'flights.txt' 
     INTO TABLE Flights 
      FIELDS TERMINATED BY "," 
      ( FLNO
      , FROM
      , TO
      , DISTANCE
      , DEPARTS "to_date(:departs,'yyyy/mm/dd hh24:mi')"
      , ARRIVES "to_date(:arrives,'yyyy/mm/dd hh24:mi')"
      , PRICE DECIMAL EXTERNAL
        )
    

    Notice that I’ve also changed PRICE into a decimal, if you look at your log file, everything is supposedly a character, which means you’re doing an implicit conversion, which may not be guaranteed.

    Why you got your specific error message? I don’t actually know. I also suspect it’s because you’ve got a column called FROM. According to the control file documentation there’s no SQL*Loader keyword from, so I can only posit that it’s some problem with SQL*Loader’s communication with Oracle.

    Here’s another good resource on syntax.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following table: SQL> desc recording Name Null? Type -------------------- -------- ------
Consider the following tables; test SQL> desc test; Name Null? Type ----------------------------------------- -------- ----------------------------
Pl find code below SQL> desc aaa Name Null? Type ----------------------------------------- -------- ---------------------------- ENAME
Consider the following SQL Server 2005/2008 query: Select [UID], [DESC] From SomeTable Order By
I have this SQL table: CREATE TABLE DATA ( ID NUMBER NOT NULL, CODE
I have a SQL query which retrieve wall post list $qry=mysql_query(SELECT senderid,post,date FROM .post_table.
SQL Server provides the type [rowguid]. I like to use this as unique primary
On SQL Server, the sys.objects table includes Type and Type_Desc attributes. For example, for
If I have a SQL statement such as: SELECT TOP 5 * FROM Person
Following SQL get what I need: SELECT TOP (50) [nodeId] FROM [dbo].[cmsContentXml] WHERE [xml]

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.