我必须使用表"testconsent_id"的id值更新表test_test列,test_groupedconsent,其中patient_idin test_test和patient_idin test_groupedconsent表匹配,并且两个表中的creation_date匹配.我正在使用以下查询但收到错误 - "near "as": syntax error".
查询有什么问题?
Update test_test as Tinner join (select id,patient_id,creation_date from test_groupedconsent) as Aon A.patient_id = T.patient_id and A.creation_date = T.creation_dateset T.testconsent_id = A.id;
Run Code Online (Sandbox Code Playgroud)