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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:10:51+00:00 2026-05-20T05:10:51+00:00

update tableA set tableA.column1 = ‘someValue’ where tableA.column2 in ( select column3 from tableB

  • 0
update tableA
set tableA.column1 = 'someValue'
where tableA.column2 in 
( select column3 from tableB where tableB.column4 in 
(
'valueA',
'valueB',
-- about 50 more records go here
)
)

When I run this, the database seems to hang. I am pretty new to sql, so I want to rule out (…or more likely rule in) the possibility that the problem is with my statement. I am running this on an oracle database using sqlDeveloper.

  • 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-20T05:10:52+00:00Added an answer on May 20, 2026 at 5:10 am

    If the DB is appearing to “hang” it may well be that there are modifications to the data in another, uncommited session.

    Try…

    SELECT *
    FROM   tableA
    WHERE  tableA.column2 IN ( select .... )
    FOR UPDATE NOWAIT;
    

    and see if you get an:

    ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired
    

    Make sure you issue a ROLLBACK after that test.

    If you do get the error, it indicates that another session has a lock on the data.

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

Sidebar

Related Questions

I can't do this in MySQL UPDATE tableA, tableB SET tableA.column1 = SUM(tableB.column2) WHERE
Is this possible in mysql? update table1 set column1 = (select column1 from table2
Which would be faster? Method A: UPDATE table1 SET table1.column1 = table2.column1 FROM table2
I really need do something like that: UPDATE table t1 SET column1=t2.column1 FROM table
I'm trying to get the following SQL statement to work: UPDATE myschema.tableA update_tableA SET
I am trying a simple UPDATE table SET column1 = 0 on a table
Does following update query always leave table data unchanged? update mytable set column1 =
I currently have something like this: UPDATE table1 SET column1 = REPLACE(column1, 'abc', 'abc1')
I have two tables, tableA and tableB. I want to set a trigger. Once
I need to achieve this update [table] set [column c] = ( select [column

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.