zoukankan      html  css  js  c++  java
  • day34作业

    1. 查看岗位是teacher的员工姓名、年龄
    select name, age from tbl where job=teacher;
    
    1. 查看岗位是teacher且年龄大于30岁的员工姓名、年龄
    select name, age where job=teacher and age>30;
    
    1. 查看岗位是teacher且薪资在9000-1000范围内的员工姓名、年龄、薪资
    select name, age, salary from tbl where job=teacher and salary between 9000 and 10000
    
    1. 查看岗位描述不为NULL的员工信息
    select * from tbl where job is not null
    
    1. 查看岗位是teacher且薪资是10000或9000或30000的员工姓名、年龄、薪资
    select name, age, salary from tbl where job=teacher and salary in (10000, 9000, 300000)
    
    1. 查看岗位是teacher且薪资不是10000或9000或30000的员工姓名、年龄、薪资
    select name, age, salary from tbl where job=teacher and salary not in (10000, 9000, 30000)
    
    1. 查看岗位是teacher且名字是jin开头的员工姓名、年薪
    select name, age from tbl where job=teacher and name like 'jin%'
    
  • 相关阅读:
    DOM(文档对象模型)
    客户端检测
    mysql之触发器
    mysql之select(二)
    浅谈mysql中varchar(m)与char(n)的区别与联系
    mysql之select(一)
    mysql(一)
    mysql5.7.11安装遇到的问题
    Java 网络编程(二)
    Java 网络编程(一)
  • 原文地址:https://www.cnblogs.com/YajunRan/p/11761317.html
Copyright © 2011-2022 走看看