老师在连接时我把and写成or,为什么会出现一大堆Taylor?
select last_name,departments.department_id from employees,departments where last_name = 'Taylor' or employees.department_id = departments.department_id;
老师为什么我安装好了没有你说的localhost
其实把min(salary)和department_id一起作为子查询的输出就可以了
select last_name,salary,department_id from employees where (department_id,salary) in(select department_id,min(salary) from employees group by department_id);
老师,我这个是不是缺失了job_grades这个表
SQL>
SQL> select e.last_name , e.job_id , e.salary , d.department_name , j.gra from employees e , departments d ,job_grades j where e.department_id = d.department_id and e.salary between j.lowest_sal and j.highest_sal;
老师,这节课也没办法播放。。。。。。。。。。。
未找到文件是什么原因啊???????老师?
MenuView类里边的,showMenu()方法,根据输入的数字选择不同的操作,为什么不直接调用EmpDaoImpl类中的相对应的方法,比如case 1语句,里,为啥是调用addemp,而不是直接调用EmpDaoImpl类中的insEmp方法
直接写关闭ResultSet、Statement、Connection,前面的关闭Connection和Statement方法可以不再写吗?
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= balance + 500 where accountname = 'lisi'' at line 1
老师我运行完变成这样了
第一次编辑数据是没有问题的
管理员→张三
售票员→李四
但是第二次,修改数据时,就出现问题
管理员→李四
售票员→张三
老师,安装mysql安装包时候,在哪里改安装路径呀,我的C盘不够了,想改一下安装路径。
登录的时候报
怎么解决
老师我想问一下在对于这个salary建立了索引以后,当它小于和等于3000的情况下是走的索引扫描,但是当他这个大于的时候走的是全表扫描,对于这个部分老师的说明我还是不太明白,希望老师能再通俗的讲一下
package com.bjsxt; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.sql.Statement; import java.util.ResourceBundle; /* * jdbc工具类 * */ public class JdbcUtil { private static String driver; private static String jdbcUrl; private static String username; private static String userpassword; static { //读取properties文件 ResourceBundle bundle = ResourceBundle.getBundle("jdbc"); driver = bundle.getString("driver"); jdbcUrl = bundle.getString("jdbcUrl"); username = bundle.getString("username"); userpassword = bundle.getString("userpassword"); try { Class.forName(driver); } catch (ClassNotFoundException e) { e.printStackTrace(); } } //获取Connection对象 public static Connection getConnection(){ Connection conn = null; try { conn = DriverManager.getConnection(jdbcUrl,username,userpassword); } catch (SQLException e) { e.printStackTrace(); } return conn; } //关闭statement public static void closeStatement(Statement state){ if (state != null){ try { state.close(); } catch (SQLException e) { e.printStackTrace(); } } } //关闭Connection public static void closeConnection(Connection conn){ if (conn != null){ try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } //关闭资源 public static void closeResource(Statement state ,Connection conn){ closeStatement(state); closeConnection(conn); } }[object Object]
这个问题实在找不到为什么?看不出来哪里报错??????
这是为什么,是报错吗
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637