这是我到目前为止所拥有的:
//Insert a CD supplied by a particular supplier and produced by a particular producer
Mysqli_query($con, "INSERT INTO CD WHERE suppliername = "Sony" AND producername = "Gold Records" (CD name, CD type, CD year)
VALUES ('CDname', 'CDtype', 'CDyear')");
//List producers information who produce CD of a particular artist released in a particular year
mysqli_query($con, "SELECT name from producers WHERE CD artist="Yoko Kano" AND year= "1999");
或者我应该包括WHERE artist from song="Yoko Kano" AND year from song= "1999"
吗?
这是正确的语法吗?只是想仔细检查一下。