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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:57:27+00:00 2026-06-03T14:57:27+00:00

I want to add values to a new column I added to a table.

  • 0

I want to add values to a new column I added to a table. I need to update about 80 rows and found an answer here that used a similar format as I tried:

Update table_name
set column_name = 'G'
where item_id in (6,7,12,15,16,17,22,24,134,166...etc)

column_name is CHAR(10) and item_id is an INT

I am getting an error:

`Subquery returned more than 1 value.  This is illegal when the subquery follows =, !=, <, <= , >, >=, or when the subquery is used as an expression.'

I tried just using a set of 3 values and got the same error. I am too new at it to know why this doesn’t work.

It does work one at a time, but I’d rather not 🙂

  • 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-03T14:57:29+00:00Added an answer on June 3, 2026 at 2:57 pm

    Since

    Update table_name
    set column_name = 'G'
    where item_id in (6,7,12,15,16,17,22,24,134,166...etc)
    

    is your query, I can state that you have a trigger that runs whenever you do an update on table_name.

    Your query won’t give the error that you stated, so a query inside the trigger must be the problem!

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

Sidebar

Related Questions

I want to add a new column to a table which already consists billions
I added a new column to my table but I forgot to add the
I want to add a new column CreatedBy to a table PerformanceData. I want
I want add a new field in my database, and set all rows values
I want to insert row for each day to add new values, and I
I have a list of string values that I want add to a hashtable
My 'contents' table has about 10,000,000 rows. I used column 'register_date' for sorting in
I want to add some values in arraylist but at random index. Is this
I'm developing web-application, in this I want to add all months values on the
In a stored procedure (Oracle in my case), I want to add some values

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.