Top "Mysql-error-1093" questions

ERROR 1093 (HY000): You can't specify target table '%s' for update in FROM clause

MySQL Error 1093 - Can't specify target table for update in FROM clause

I have a table story_category in my database with corrupt entries. The next query returns the corrupt entries: SELECT * …

mysql subquery sql-delete mysql-error-1093
You can't specify target table for update in FROM clause

I have a simple mysql table: CREATE TABLE IF NOT EXISTS `pers` ( `persID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(35) …

sql mysql mysql-error-1093
SQL DELETE with JOIN another table for WHERE condition

I have to delete rows from guide_category that have no relation with guide table (dead relations). Here is what …

mysql sql delete-row sql-delete mysql-error-1093
Insert and set value with max()+1 problems

I am trying to insert a new row and set the customer_id with max()+1. The reason for this is …

mysql sql insert mysql-error-1093
SQL UPDATE with sub-query that references the same table in MySQL

I'm trying to update a column's value in a bunch of rows in a table using UPDATE. The problem is …

mysql sql mysql-error-1093
How do I lock read/write to MySQL tables so that I can select and then insert without other programs reading/writing to the database?

I am running many instances of a webcrawler in parallel. Each crawler selects a domain from a table, inserts that …

mysql locking web-crawler mysql-error-1093
MySQL #1093 - You can't specify target table 'giveaways' for update in FROM clause

I tried: UPDATE giveaways SET winner = '1' WHERE ID = (SELECT MAX(ID) FROM giveaways) But it gives: #1093 - You …

mysql sql select subquery mysql-error-1093
Deleting a row based on the max value

How can I structure a mySQL query to delete a row based on the max value. I tried WHERE jobPositonId = …

mysql sql max sql-delete mysql-error-1093
Delete - I can't specify target table?

Why this query doesn't work? DELETE FROM recent_edits WHERE trackid NOT IN (SELECT DISTINCT history.trackid FROM history JOIN …

mysql mysql-error-1093
MySQL INSERT Using Subquery with COUNT() on the Same Table

I'm having trouble getting an INSERT query to execute properly, and I can't seem to find anything on Google or …

mysql insert mysql-error-1093