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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:12:41+00:00 2026-05-15T13:12:41+00:00

insert ignore into table1 select ‘value1’,value2 from table2 where table2.type = ‘ok’ When I

  • 0
insert ignore into table1 
select 'value1',value2 
from table2 
where table2.type = 'ok'

When I run this I get the error "missing INTO keyword".

  • 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-15T13:12:42+00:00Added an answer on May 15, 2026 at 1:12 pm

    When I run this I get the error “missing INTO keyword” .

    Because IGNORE is not a keyword in Oracle. That is MySQL syntax.

    What you can do is use MERGE.

    merge into table1 t1
        using (select 'value1' as value1 ,value2 
               from table2 
               where table2.type = 'ok' ) t2
        on ( t1.value1 = t2.value1)
    when not matched then
       insert values (t2.value1, t2.value2)
    /
    

    From Oracle 10g we can use merge without handling both branches. In 9i we had to use a “dummy” MATCHED branch.

    In more ancient versions the only options were either :

    1. test for the row’s existence before issuing an INSERT (or in a sub-query);
    2. to use PL/SQL to execute the INSERT and handle any resultant DUP_VAL_ON_INDEX error.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

INSERT IGNORE INTO table3 (id1, id2) VALUES SELECT id1, id2 FROM table1, table2; What's
INSERT INTO [Tasks] ([LoginName] ,[Type] ,[Filter] ,[Dictionary] ,[Description]) Select N'Anonymous',4,'SomeTable.targetcode in (select Code from
I am running the following query in MySQL REPEAT INSERT IGNORE INTO tableB SELECT
$q = $db->prepare('INSERT IGNORE INTO Cities (Name,Stamp) VALUES (?,?)'); $q->execute(array($city,$stamp)); I am running this
INSERT INTO files (fileUID, filename) WITH fileUIDS(fileUID) AS ( VALUES(1) UNION ALL SELECT fileUID+1
INSERT INTO item_quotation (item_id, quotation_id,name_searched,item_name,other_name,selling_price,discounted_price) SELECT DISTINCT I.item_id, . $quotation_id . ,T.item_name, I.name,I.other_name, INV.selling_price,
Say I have this great query in my stored procedure. Select * from Temp
When I try to use this sql statement: LOAD DATA INFILE 'url/file.txt' IGNORE INTO
I get the following error when I try to insert a row into a
In IE when I insert text into a <pre> tag the newlines are ignored:

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.