MySQL in your can ' t specify target table for update in FROM clause error means that you cannot select some of the values in the same table first, and then update the table (in the same statement).Example: DELETE from Sys_org_relation where Porgid in (Select Porgid from Sys_org_relation R where r.corgid= ' customer ID
In MySQL, when writing SQL statements, you may encounter the error of you can ' t specify target table ' table name ' for update in FROM clause, which means that you cannot select some values from the same table before the UPD Ate this table (in the same statement).1. How di
The following example uses MERGE to update or insert rows to modify the SalesReason table. When the NewName value in the source table matches the value in the Name column of the target table (SalesReason), The ReasonType column in the target
In the process of creating the data Warehouse, you often encounter such problems, for example: the source table because of business reasons for the new field, and ETL program is extracted according to the previous source table structure, if you do not rebuild the ETL program, the new indicator will not flow into the DW, the problem is as shown inCreate a simple input and outputAs shown, there is a column3 f
the existing information, you have the following sql: /**
/updateset= (select from where= t2.id); View Code Quote "1093-you can ' t specify target table ' t ' for update in FROM clause" exception. It means that you can't specify the updated target table in the FROM clause (English is not good, even if you know each wo
GoldenGate dml target table of synchronization process and field processing test
-- Experiment: For goldengate processes that only have dml synchronization, if the source end performs the ddl plus field operation, how to deal with the corresponding process
-- Source orcl-- First check the Process status, running status:[Oracle @ localhost ogg] $./ggsciGGSCI (localhost. localdomain) 1> info all
Program Statu
There are various tables in the DB2 database. This article will introduce you to the clustering target table. This table is a special table in DB2. If you are interested in this, take a look.
There is a special table in the DB2 database called the clustering
Translation: MySQL cannot specify the updated target table in the FROM clauseSOURCE SQL statement:[SQL]View PlainCopyprint?
Delete from t_official_sys_user
where user_name in (SELECT user_name from t_official_sys_user b Group by b. ' User_name ' Having count (1) > 1)
The following error was reported:[SQL]View PlainCopyprint?
[SQL]
Delete from t_official_sys_user
where use
The database has two fields in the wrong position, you want to change them. Because there is no database write permission, it needs to be implemented with SQL statements. Originally thought to be simpleUpdate table A set a. Field a= (select B field from table where id=?), set a. Field b= (Select a field from table where id=?) where id=? , and the results reported
Tags: style io color os ar for SP data onThis error means that you cannot select some of the values in the same table, then update the table (in the same statement), the solution does not directly query the same, assuming that the table to be updated to a, the data of a is first put to table B, and then query from
Tags: ble strong recommended Work nav char text href windowStart delving into the work flow of something, the first nail, notes: Error message: jBPM4.4 no JBPM DB schema:no jbpm4_execution table. Run the Create.jbpm.schema target first in the Install tool. Analysis: JBPM The Create statement error when initializing the table, as follows: CREATE
In mysql, You can't specify target table for update in FROM clause. specifyclause
In mysql, You can't specify target table for update in FROM clause errors mean that some values in the same table cannot be selected first, update the tabl
MySQL in your can ' t specify target table for update in FROM clause error means that you cannot select some of the values in the same table first, and then update the table (in the same statement). For example, the following SQL:Delete fromTblwhereIdinch ( Select Max(ID) fromTBL Awhere EXISTS (
Tags: User statement for BSP Modify use UPD errorWhen you do address management, you need to set the other address of the user to be non-default based on the user you want to set as the default address. Need to select the user ID and update Original statement Update address Set Isdeafult = 0 where user_id = (select user_id from address where id =?) Error--can ' t specify target table ' address ' for update
Operating environment: There are table Game_list, fields: uid,score1,score2,seat_id,last_update;The incoming parameter is I_player_detail, the incoming value is multiple user ID, before score, after score, seat number, and each user's data is separated by a semicolon (;);Operation Objective: To insert the corresponding properties of each user into the corresponding field of the target
Operating Environment: There are table Game_list, fields: uid,score1,score2,seat_id,last_update; The incoming parameter is I_player_detail, the passed-in value is the ID of multiple users, the previous score, after the score, Seat numbers, each user's data separated by semicolons (;); Action Purpose: To insert the corresponding properties of each user into the corresponding field in the target
Problem:A problem was encountered today when removing duplicate data from the MySQL database. The following script:DELETE from WHERE inch (SELECTMAXas fromGROUP by Name,age)An error message will appear:You can ' t specify target table ' Tempa ' for update in FROM clauseBasically, in the same statement, you cannot select some of the values in the same table first
Error occurred during development execution:Update Bm_area Set level = 2 where Parent_code in (select B.parent_code from Bm_area as b where b.level = 1);ERROR 1093 (HY000): You can ' t specify target table ' Bm_area ' for update on FROM clauseGeneral use:CREATE TABLE tmp as select B.parent_code from Bm_area as b where b.level = 1;Update Bm_area Set level = 2 wher
MySQL in the can ' t specify target table for update in the FROM clause error means that you cannot select some of the values in the same table first, and then update the table (in the same statement). For example, the following SQL:The code is as follows:
Delete from tbl where ID in
(
select Max (ID) from TBL a
Incorrectly, you cannot select some values from the same table first, and then update the table (in the same statement). For example, the following SQL:Delete from the TBL where ID in(Select Max (ID) from TBL a where EXISTS(Select 1 from the TBL B where A.tac=b.tac GROUP by TAC has count (1) >1)Group BY TAC)Rewrite it to the following line:Delete from the TBL where ID in(Select a.ID from(Select MAX (ID) ID
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.