我有三个相互关联的值的列表。即学籍、学名和学名。
我正在使用Kotlin 存储它们。以下是代码:
val studentData = listOf(
Triple(first = "1", second ="Sam", third = "MIT"),
Triple(first = "2", second ="Johnny", third = "SYM"),
Triple(first = "3", second ="Depp", third =
public static void main(String[] args) {
Scanner user_input = new Scanner(System.in);
int i;
int n;
String a;
System.out.println("Enter the Class:");
a = user_input.next();
System.out.println("Enter the number of Students:");
n = user_input.nextIn
SELECT MAX(Score)
FROM Students
WHERE Score < (SELECT MAX(Score) FROM Students);
上面的查询工作得很好,并且获取了得分第二高的记录,而下面提到的查询没有获取任何内容。
SELECT *
FROM Students
WHERE Score < (SELECT MAX(Score) FROM Students);
在这里,学生们,我想从这张表中获取记录的所有细节,它在整个表格中得分第二。
我希望第二个查询应该被执行,谢谢提前帮助我。
我没有使用任何数据库,我只是在w3schools中尝试这些查询。