私はテーブルresources (title, resourceid)
と別のテーブルを持っていますclassifications (title, resourceid, classificationid)
リソースから分類テーブルにタイルを追加したいのですが、に同じ行が複数ありresourceid
ますclassifications
。
このクエリを書いたとき
update `classification`
set `title`= (select title
from Resources
where Resources.`resourceid` = classification.`resourceid`)
このエラーが発生しました:
エラー-サブクエリは複数の行を返します。