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

  • Home
  • SEARCH
  • 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 8478661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:48:24+00:00 2026-06-10T18:48:24+00:00

This statement hangs the server: DELETE FROM StockPositions WHERE machineName LIKE ‘P%’; and DELETE

  • 0

This statement “hangs” the server:

DELETE FROM StockPositions WHERE machineName LIKE 'P%';

and

DELETE FROM StockPositions WHERE machineName LIKE 'P%' LIMIT 1;

EDIT: This actually DOES work! I will continue to test when it fails. I’m leaning towards some kind of locking issue anyway…

The corresponding SELECT-statements work as expected (returning 500 rows).

This statement works fine:

DELETE FROM StockPositions WHERE ID = 5226;

  • No foreign key cascade tables deletes. EDIT: Wrong! See my answer below.
  • No triggers.
  • No locks (appearantly).
  • No ideas.

Any ideas what to look for?

(No panic – I can solve this by workarounds but I’d really want to know what’s going on!)

EDIT:

CREATE TABLE `StockPositions` (
   `ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
   `isEnabled` tinyint(1) DEFAULT NULL,
   `readableName` varchar(32) NOT NULL,
   `machineName` varchar(32) NOT NULL,
   `longName` varchar(64) DEFAULT NULL,
   `accessibilityLevel` int(10) unsigned NOT NULL,
   `storey` char(1) DEFAULT NULL,
   `lengthX` decimal(10,3) unsigned DEFAULT NULL,
   `lengthY` decimal(10,3) unsigned DEFAULT NULL,
   `lengthZ` decimal(10,3) unsigned DEFAULT NULL,
   `positionType` varchar(50) DEFAULT NULL,
   `type` int(11) DEFAULT NULL,
   `frequency` int(11) DEFAULT NULL,
   `module` varchar(10) DEFAULT NULL,
   `prioritized` tinyint(4) DEFAULT NULL,
   `aisleID` int(10) DEFAULT NULL,
   PRIMARY KEY (`ID`),
   UNIQUE KEY `readableName` (`readableName`),
   UNIQUE KEY `machineName` (`machineName`)
) ENGINE=InnoDB AUTO_INCREMENT=11820 DEFAULT CHARSET=utf8
  • 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-10T18:48:26+00:00Added an answer on June 10, 2026 at 6:48 pm

    Sorry! * blushing *
    The DELETE CASCADE is found in the child-table (not the parent).
    Good to know. Thank you for you time and effort!

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

Sidebar

Related Questions

In this statement, taken from the Pagerank source code: Pattern.compile(\\[.+?\\]); What does the pattern
If I use this statement: $query = select * from Products where category_description='.$search_dept.' ORDER
We have this statement: (SELECT res_bev.bev_id, property_value.name AS priority FROM res_bev, bev_property, property_value WHERE
I have seen this statement in many of the documention samples, like here This
I have a simple query like this SELECT * FROM MY_TABLE; When I run
This statement won't compile: query = from g in context.GridViews join f in context.GridViewFavorites
This statement is returning error 00920- invalid relational operator. I am sure it is
this statement will generate a 4 column table: SELECT shipped.badguy AS badguy, shipped.sdate AS
This statement doesnot work in Entity Framework context.sleep.Where(o=>o.clientDateTime.TimeOfDay>new TimeSpan(18,0,0)).ToList(); Please suggest me a workaround.
I have this statement in my c program and I want to optimize. By

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.