草庐IT

Pathology

全部标签

MySQL Delete : two similar codes, 只有一个有效

我有两个类似的SQL查询来解决一个问题,但只有第二个有效。问题是:Consideringonlymusculardisorders,writeaquerytodeletetheonsets,whichendedupwithrecovery,ofpatientsthatcontractedandcuredatleasttwo(muscular)diseases.数据库有这样的结构:Onset(Patient,Pathology,OnsetDate,RecoveryDate)Pathology(Name,BodyPart)这是我的第一个代码:DELETEES.*FROMOnsetESNAT