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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:33:52+00:00 2026-06-02T21:33:52+00:00

Im trying to insert ‘testing’ into my MeetingNotes column under two conditions but for

  • 0

Im trying to insert ‘testing’ into my MeetingNotes column under two conditions but for the life of me I cannot get it to work. Is it possible to do this? I am a beginner with sql and mysql? Thanks in advance!

SELECT MeetingNotes
FROM Meeting
INSERT INTO MeetingNotes
VALUES ('testing')
WHERE MeetingProcessId = '1001' AND MeetingId = '25'
  • 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-02T21:33:55+00:00Added an answer on June 2, 2026 at 9:33 pm

    You want to use an UPDATE query, which changes values in existing records. An INSERT query strictly adds new records.

    UPDATE Meeting
    SET MeetingNotes = 'testing'
    WHERE MeetingProcessId = '1001' AND MeetingId = '25'
    

    For future reference, I’m not sure why you have a SELECT statement in your example: it isn’t needed to insert or update records. Inserting a new record into the Meeting table (given only the three columns shown) would look like this:

    INSERT INTO Meeting (MeetingId, MeetingProcessId, MeetingNotes)
    VALUES ('25', '1001', 'Notes about this very exciting meeting...')
    

    A couple notes on this:

    • Since INSERT statements add an entirely new record to the table, columnwise constraints can’t be applied, so they don’t support a WHERE clause
    • If MeetingId is an auto-incrementing record ID generated by the database, it should be / must be left out of INSERT statements
    • Only string (CHAR/VARCHAR) values should be quoted when they appear in queries, numeric values should not. So if, for example, MeetingId and MeetingProcessId are integer instead of string columns, the quote-marks around 25 and 1001 in the queries above should be removed
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to INSERT into a table, but I get the error Cannot add
I am trying to insert a record into a table using Linq but get
I'm trying to insert some data into mysql database, but I get an error
Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get
Am trying to insert XML into XML Column.. getting following error: . Msg 6819,
I am trying to insert some text into <textarea> by query but it is
I've been trying insert a MapView into an ActionBar Tab , but I wasn't
I'm trying to insert objects (NSNumbers) into an NSMutable array, but when I check
I am trying to insert an item, into a map, which holds two other
I'm trying to insert some import lines into a python source file, but 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.