Auto commit
This commit is contained in:
parent
d76940406d
commit
777ac955d0
@ -298,6 +298,26 @@ VALUES
|
||||

|
||||
|
||||
```sql
|
||||
#4
|
||||
SELECT *
|
||||
FROM teacher;
|
||||
#5
|
||||
SELECT t.number '教工号', d.depName '部门名称'
|
||||
FROM teacher t, department d
|
||||
WHERE t.depNo = d.depNo AND t.address LIKE '%北京%';
|
||||
#6
|
||||
SELECT t.number, t.`name`
|
||||
FROM teacher t
|
||||
ORDER BY t.salary DESC
|
||||
LIMIT 1;
|
||||
#7
|
||||
SELECT t.number, t.`name`
|
||||
FROM teacher t
|
||||
WHERE t.salary BETWEEN 2500 AND 4000;
|
||||
#8
|
||||
SELECT t.`name`, t.sex, t.salary
|
||||
FROM teacher t, department d
|
||||
WHERE t.depNo = d.depNo AND d.depName = '网络技术系';
|
||||
```
|
||||
|
||||
---
|
||||
|
Loading…
x
Reference in New Issue
Block a user