password, username) ON DUPLICATE KEY UPDATEusername=(SELECT username FROM users WHERE username = VALUES(username) OR email= VALUES(email));
我正在尝试运行此查询,但收到错误错误1093 (HY000):您不能在<
在我的notes表(MySQL数据库)中,我的主键是id。我希望列originalid是主键的值。下面是我在创建一个我认为可以工作的记录之后运行的查询。UPDATE notes SET originalid = (SELECT MAX(id) FROM notes) where id = (SELECT MAX(id) FROM notes);
但我明白错误不能为更新在</
编写一条UPDATE语句来修改Categories表中的鼓类别。此语句应将category_name列更改为“Woodwinds”,并应使用category_id来标识该行。当我执行的时候SET WHERE
category_id = (select category_idfrom categories where category_na
我使用下面的查询来删除不在另一个表中的数据。delete from table_1 where tbl_id in on table_1.tbl_id=table_2.another_tbl_id where table_2.another_tbl_id is null)
上述查询中是否有任何问题?它显示您不能指定目标表“
我有这个问题 (SELECT * FROM trh_adminLoginDate---+----------------+ERROR 1093 (HY000): You can't specify target table 'a' for updatein FROM clause
我可以创建临时表</em
在这个查询中,我想更新那些最新的记录,posted.But我的这个查询不起作用,请告诉我是什么原因?错误:--无法在FROM子句中为update指定目标表‘beevers_products
update beevers_products set product_name='my_product_name' where posted_date in (SELECT
我有个问题:tableB需要在特定字段中获取表A的ID。tableB和tableA有一个共同的字段“电子邮件”Update tableB SET tableB.reference = (Select a.id from tableA a, tableBb where a.email = b.email)
不幸的是,当我运行查询时,它说我不能为FROM子句中的</e
update goods_inward_outwardwhere gi_go_id IN (select gi_go_id from goods_inward_outward#1093 -不能在FROM子句中指定目标表“goods_inward_outward”以进行更新
上面的问题是什么?这是因为我在同一个表上使用update并选择query吗?如果是这