老师,这个问题不解决可以吗?不解决以后会有什么影响?
老师问一下,我这个是哪里的错误是用户名还是密码
什么是相互可以ping通的???查了半天资料也没看懂!!!怎么查自己的是通的!!
在employees.setEmployee_id(5)和employees.setEmployee_id(10)的时候会报argument type mismatch错误
但是其他值能正常运行。数据库信息图在下方,好像5和10的列都包含日期类型,怎么解决这个问题?
package com.Hk.test; import java.util.Iterator; import java.util.List; import com.Hk.pojo.departments; import com.Hk.pojo.employees; import com.Hk.service.DepartmentService; import com.Hk.service.Impl.DepartmentsServiceImpl; public class Test { public static void main(String[] args) { DepartmentService service=new DepartmentsServiceImpl(); //service.addDepartments("销售部门",10); // List<departments> list = service.selectDepartments("销售部门"); // for(Iterator<departments> iterator = list.iterator();iterator.hasNext();) { // departments departments = iterator.next(); // System.out.println(departments); // } // departments departments=new departments(); // departments.setDepartment_name("市场部门"); // departments.setDepartment_id(18); // int i = service.updateDept(departments); // System.out.println(i); // //利用反射1 // departments dept=new departments(); // dept.setDepartment_id(18); // Object[] param={dept.getDepartment_id()}; // List<departments> list = service.selectAll("select * from departments where department_id=?", param, departments.class); // for (departments departments : list) { // System.out.println(departments); // } employees employees=new employees(); employees.setEmployee_id(10); Object[] param= {employees.getEmployee_id()}; List<employees> list = service.selectAll("select * from employees where employee_id=?", param, employees.class); for (employees employees2 : list) { System.out.println(employees2); } } }
报错信息
老师 你上课用的那个employees表有吗
光讲 没搞明白这么多方法干啥用,为啥创建
老师,这里加 的 s_name 与 c_id 是代表什么呢
我写的sql语句是:select to_char(next_day(add_months(hire_date,6),'星 期 五 '),'day,MM"月",DD"日",yyyy"年"') as "Next 6 Month Review" from employees order by hire_date;
和老师写的一模一样,为什么会报错
localhost是本机,127.0.0.1不也是本机吗
第一行能正常返回false了,但是第二行又报错,这是哪的原因?
为什么这个结果不带下划线?
like 中什么时候用一个%,什么时候用两个
老师,为什么我的XML配置文件都是直接复制文档的,然后代码也跟老师的一样,为什么它执行之后一直没停止,死循环了。
错误信息这样显示:
Tue Sep 28 20:50:52 CST 2021 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
老师,只能用case也太不灵活了吧,如果想对区间操作(如对学生的成绩score根据区间返回优、良、中、差),该怎么操作呢? 用if也不方便,需要括号套括号(如下),要是有if……else if这样的写法就好了。
select *,
if (score >= 90, "优秀",
if (score >= 80, "良好",
if (score >= 60, "一般", "差")
)) as '评价'
from students;
老师,如果奖金=月薪X12+奖金应该怎么写?
select ename,job,sal*12+comm"年薪" from emp;
运行结果 没有奖金的年薪也不显示
另外,表格能不能居中显示 看着别扭
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637