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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:02:32+00:00 2026-06-12T16:02:32+00:00

The are many questions with this same title but I can’t find an answer

  • 0

The are many questions with this same title but I can’t find an answer among those.

What am I doing wrong?

CREATE TABLE J
    (A integer)
;

INSERT INTO J (A)
VALUES
    (1),
    (2),
    (3),
    (4),
    (5),
    (6),
    (7),
    (8),
    (9),
    (10)
;

The create alone works. The problem is just the insert. I tried in SQL Fiddle.

  • 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-12T16:02:33+00:00Added an answer on June 12, 2026 at 4:02 pm

    You can do it several ways (See SQL Fiddle with Demo):

    INSERT ALL 
        INTO J (A) VALUES (1)
        INTO J (A) VALUES (2)
        INTO J (A) VALUES (3)
        INTO J (A) VALUES (4)
        INTO J (A) VALUES (5)
        INTO J (A) VALUES (6)
        INTO J (A) VALUES (7)
        INTO J (A) VALUES (8)
    SELECT * FROM dual
    ;
    

    Or (See SQL Fiddle With Demo):

    INSERT INTO J (A)
    select  (1) from dual union all
    select  (2) from dual union all
    select  (3) from dual union all
    select  (4) from dual union all
    select  (5) from dual union all
    select  (6) from dual union all
    select  (7) from dual union all
    select  (8) from dual union all
    select  (9) from dual union all
    select  (10) from dual
    

    Or even separate INSERT statements for each one:

    INSERT INTO J (A) VALUES (1);
    INSERT INTO J (A) VALUES (2);
    INSERT INTO J (A) VALUES (3);
    INSERT INTO J (A) VALUES (4);
    INSERT INTO J (A) VALUES (5);
    INSERT INTO J (A) VALUES (6);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've seen many questions like this, but i can't seem to find the answer:
There are many questions like this but I can't find one that seems to
There are many questions like this, but none of them seem to answer my
I have seen many questions in this (and others) forum with the same title,
There seem to be many questions asked about this subject here on stackoverflow, but
Sorry if this is a dupe. There are many similar questions but it seems
This must be a duplicate. But with so many NSPredicate questions out there, I
I've read through many of the questions on SO about this, but many answers
I have this (noob?) question, but i just can't figure it out for many
First, I noticed there are many questions regarding this, lots marked as duplicate. I

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.