運用データベースジョブday34

  1. ビューの仕事は、従業員の名前、年齢の教師であります
select name,age from employee where post='teacher'; 
  1. ビュージョブが30歳の教師と従業員の名前、年齢よりも年上であります
select name,age from employee where post='teacher' and age>30; 
  1. ビュージョブが9000から1000の範囲の名前、年齢、給与教師とスタッフの給与です
select name,age,salary from employee where post='teacher' and salary between 1000 and 9000;     
  1. 仕事の説明はNULL従業員情報ではありません
select * from employee where post is not null; 
  1. ビューの仕事は、教師の給与と従業員名が9000または10,000 30,000である、年齢、給与です
select name,age,salary from employee where post='teacher' and salary=10000 or salary=9000 or salary=30000; 
  1. ビューの仕事は、教師の給与で、従業員名は9000または10000または30000、年齢、給与ではありません
select name,age,salary from employee where post='teacher' and salary!=10000 and salary!=9000 and salary!=30000; 
  1. ビューの仕事は、教師や従業員の名前ジン名で年俸の始まりです
select name,salary*12 from employee where post='teacher' and name li'jin%';

おすすめ

転載: www.cnblogs.com/shin09/p/11761776.html