jjzjj

laterecords

全部标签

php - SQL 查询 - 子查询返回多行

表:laterecords-----------studentid-varcharlatetime-datetimereason-varchar我的查询:SELECTlaterecords.studentid,laterecords.latetime,laterecords.reason,(SELECTCount(laterecords.studentid)FROMlaterecordsGROUPBYlaterecords.studentid)ASlate_countFROMlaterecords我收到“MySQL子查询返回多行”错误。我知道此查询的解决方法是使用以下查询:SELECT