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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:38:46+00:00 2026-06-14T16:38:46+00:00

I wanted to perform a simple delete statement like this: DELETE FROM table WHERE

  • 0

I wanted to perform a simple delete statement like this:

DELETE
FROM table
WHERE table.value = 123

and I am expecting the delete 512 rows from the table since those 512 rows have value 123.

However, there are 5 lines of “xxx rows affected” displayed after running the delete statement.

  • The last two lines are identical, “512 lines affected”, which is expected.
  • The first “512 rows affected” was the actual deletion.
  • The second “512 rows affected” was a trigger(the only delete trigger) inserting 512 rows into table_AUDIT.

What about the first 3 lines of “xxx rows affected”?

I don’t know which tables are affected so I don’t know how to use OUTPUT(googled) to figure out which rows/tables are affected.

My question is: how to display detailed information of the rows deleted? Insert of meaningless “123 rows effected”, I like to see which rows from which tables are deleted.

  • 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-14T16:38:47+00:00Added an answer on June 14, 2026 at 4:38 pm

    The best you can do is get a query plan which shall include the triggers. Which rows is something left to your intelligence – query plans generally do not provide this information.

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

Sidebar

Related Questions

Say I wanted to perform complexity analysis from first principles on this simple loop
Today I wanted to perform this task, and I run across some issues in
I have 2 simple tables that I would like to perform an INNER JOIN
Wanted to know if there was a way one could query shelveset details from
just wanted to ask where I define initial class properties? From other languages I
I'm using the simple object/graph mapping in Spring Data Neo4j 2.0, where I perform
How can I perform the equivalent of this? My understanding is that this is
I want to perform a very simple task, but cannot due to an error
This may seem like an odd question, but it's something I couldn't solve on
Up until now I have used the django template system to perform this kind

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.