SQL> select e.last_name,e.department_id,e.salary from employees e where e.salary in(select min(e.salary) from employees e group by e.department_id);
老师,这里面子查询按照department_id分组了,主查询就也同样安装department_id分组了吗?
老师,我这个出了什么问题呀
老师我使用properties就会报错,但是不使用就能把数据数据插入表中,能帮我解答一下嘛
请问老师 这是什么情况 应该如何解决啊
package com.wxc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; public class Test01Jdbc { //向Departments表中添加一条数据 public void insertDepartments(String department_id,int location_id){ Connection conn=null; Statement state=null; try { //驱动注册 实例化数据库驱动对象 Class.forName("com.mysql.jdbc.Driver"); //创建连接 conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/bjsxt?useUnicode=true&characterEncoding=utf-8&useSSL=false","root","Bugaosun1"); //创建执行SQL的语句statement String sql="insert into departments values(default,'"+department_id+"','"+location_id+"')"; state=conn.createStatement(); int flag=state.executeUpdate(sql); System.out.println(flag); } catch (Exception e) { e.printStackTrace(); }finally { if (state!=null){ try { state.close(); } catch (SQLException e) { e.printStackTrace(); } } if (conn!=null){ try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } } public static void main(String[] args){ Test01Jdbc test=new Test01Jdbc(); test.insertDepartments("研发部",8); } }
select e.manager_id ,min(e.salary) from employees e where ((e.manager_id is not null) and (e.salary >6000)) group by e.manager_id order by MIN(e.salary) desc;
老师,第五题这样写为什么输出结果不一样呢?
老师,这个Properties是为了封装用户名和密码的,那这个properties是java自带有的吗?视频里没有编写Properties
老师划线的这行代码是获得继承他的那个类的类型吗?如果是的话是怎么获得的呢 this不是指的BaseDao吗
建完表之后可不可以修改列的数据类型
基于druid连接的情况下,
如果需要进行批量添加操作,
还需要在配置url里边添加参数rewriteBachedStatements=true吗?
如果不添加,连接池会做优化吗
老师,这个打不开
安装过程中,选择“桌面类”点击下一步,安装程序自动退出。重启电脑尝试几次均是如此。但选择“服务器类”后点击下一步能正常跳转至下一步操作继续安装。所以我想问问,我能不能安装“服务器类”?会不会影响之后的学习?
K{5IBQGAMRQA7ECI`)K7FG0.png
IMG_20200310_213556(1).jpg
老师,您看一下是啥原因,重安装好多次都是这
老师请问一下,在使用last_day日期函数的时候为什么会出现这种情况啊
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637