(1)mysql> select name,gender,birthday,salary from employee -> where name not like '%次%'; +----------+--------+------------+--------+ | name | gender | birthday | salary | +----------+--------+------------+--------+ | 山田太郎 | 男 | 1995-01-01 | NULL | | 鈴木花子 | 女 | 1990-02-11 | 250000 | | 田中三郎 | 男 | 1975-11-03 | 400000 | | 高橋良子 | 女 | 1985-11-23 | 300000 | | 鈴木良枝 | 女 | 1970-05-03 | 450000 | +----------+--------+------------+--------+ 5 rows in set (0.00 sec) (2)mysql> select name,dep_id from employee order by dep_id desc; +----------+--------+ | name | dep_id | +----------+--------+ | 田中三郎 | D003 | | 高橋良子 | D003 | | 鈴木良枝 | D003 | | 鈴木花子 | D002 | | 佐藤次郎 | D001 | | 山田太郎 | NULL | +----------+--------+ 6 rows in set (0.00 sec) (3)mysql> select name,gender,birthday from employee order by gender desc,birthday asc; +----------+--------+------------+ | name | gender | birthday | +----------+--------+------------+ | 田中三郎 | 男 | 1975-11-03 | | 佐藤次郎 | 男 | 1990-05-03 | | 山田太郎 | 男 | 1995-01-01 | | 鈴木良枝 | 女 | 1970-05-03 | | 高橋良子 | 女 | 1985-11-23 | | 鈴木花子 | 女 | 1990-02-11 | +----------+--------+------------+ 6 rows in set (0.00 sec) (4)mysql> select emp_id,name,gender,birthday,salary,dep_id from employee limit 2,3; +--------+----------+--------+------------+--------+--------+ | emp_id | name | gender | birthday | salary | dep_id | +--------+----------+--------+------------+--------+--------+ | E00003 | 鈴木花子 | 女 | 1990-02-11 | 250000 | D002 | | E00004 | 田中三郎 | 男 | 1975-11-03 | 400000 | D003 | | E00005 | 高橋良子 | 女 | 1985-11-23 | 300000 | D003 | +--------+----------+--------+------------+--------+--------+ 3 rows in set (0.00 sec)