zoukankan      html  css  js  c++  java
  • sql


    (2)列出emp表中各部门job为'CLERK'的员工的最低工资,最高工资
    select max(sal) as 最高工资,min(sal) as 最低工资,deptno as 部门号 from emp where job = 'CLERK' group by deptno;
     
     
     
     
    18.根据下面的代码,String s = null ,会抛出NullPointerException;异常的有(A、C)
    A:if((s!=null)&(s.length()>0))
    B:if((s!=null)&&(s.length()>0))
    C:if((s==null)|(s.length()==0))
    D:if((s==null)||(s.length()==0))
    select
          p.id,p.pid,p.name,p.moduleUrl,p.operationalUrl,p.orderNo,p.createTime
    from 
         tbl_permission p
    where id in
         (select
                permission_id
          from
               tbl_role_permission_relation
          where role_id in
                (select
                       role_id
                  from
                       tbl_user_rol;e_relation
                   where
                        uer_id=#{useId}))
    order by p.orderNo
     
    select
     tt.*
    from(
             select * ,rownum as linenum
               from (业务SQL)t
               where  rownum<=pagesize*pageNo-1)tt
    where linenum>(pageNo-1)*pagesize
     
     
     
     
     
     
    总结很重要哦 方法得当,坚持会有奇迹哦
  • 相关阅读:
    centos7上搭建FTP(简单版)教程
    IDEA 添加外部jar包
    linux下搭建本地yum源
    Linux下 正则表达式的用法
    linux下rename用法--批量重命名
    Homebrew 常用命令
    纯内网环境下搭建zabbix
    windows下 批量修改文件名
    【转】git 的常用命令
    [转]linux 下 正则表达式的用法
  • 原文地址:https://www.cnblogs.com/sunyuhuan/p/7217484.html
Copyright © 2011-2022 走看看