rikao7_18/chaxun.sql

37 lines
1.0 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 2.10
SELECT * FROM student ORDER BY age DESC
# 3.10
SELECT * FROM student where INSTR(student.ename,'')
#4.500010
SELECT * FROM student where student.sal>5000 and student.sex=''
# 5.2010
SELECT student.tel FROM student WHERE student.classid=20
# 6.10
SELECT student.sal FROM student ORDER BY student.sal ASC LIMIT 1
# 7.3010
SELECT student.age FROM student WHERE student.classid=30 ORDER BY student.age ASC LIMIT 1
# 8.15
SELECT student.sal FROM student WHERE student.sex='' ORDER BY student.sal ASC LIMIT 1
# 9.15
SELECT * FROM student WHERE student.sex='' ORDER BY student.sal ASC LIMIT 1