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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:43:39+00:00 2026-05-26T18:43:39+00:00

I have to use Java POI to batch import some excel files into Oracle

  • 0

I have to use Java POI to batch import some excel files into Oracle database.
The Java program is very easy, just use JDBC to inert them.

But when I checked the table, I found the physical orders of data changed. For example, I import data like this:


S/N     Name       
S0001   Name1
S0002   Name2
S0003   Name3
S0004   Name4
S0005   Name5
S0006   Name6
.....

and the table is like that:


S/N     Name       
S0001   Name1
S0003   Name3
S0004   Name4
S0002   Name2
S0006   Name6
S0005   Name5
.....

Have anyone got the same strange issue before?

  • 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-26T18:43:40+00:00Added an answer on May 26, 2026 at 6:43 pm

    A heap organized table is inherently unordered. Unless your query specifies an ORDER BY clause, Oracle is free to return data in whatever order it chooses. And it is free to physically store data in any order regardless of the order of inserts.

    If you care about the order in which data is returned, you can add an appropriate ORDER BY,

    SELECT serial_number, name
      FROM your_table_name
     ORDER BY serial_number
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program attempting to use classes from the jakarta-poi-3.0.2.jar in my /usr/share/java
I have a Java program that loads thirdparty class files (classes I did not
I have a project for school and I have to use Java. Recently I
I'm converting an application to use Java 1.5 and have found the following method:
I have a Perl module that I would like to use from Java. Is
I've just started using Java's enums in my own projects (I have to use
I have a set of source folders. I use a Java class to build
I am creating one GUI in swing Java. I have to use one button
We have a few processes in Java that use nanoTime for internal benchmarking (since
I use Hibernate with Java. I have two tables which are associated with foreign

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.