select EMPLOYEE_ID,CONCAT(LAST_NAME,FIRST_NAME)job_id, from length(Last_NAME), INSTR(LAST_NAME,'a') "Contains 'a'?"
from employees
where substr(job_id,4)='rep';
老师我这个运行不出来
No suitable driver found for jdbc
老师他说我没有找到合适的jdbc驱动
SELECT
last_name employees,salary monthly salary
where salary between 5000 and 12000
and
department_id in(20,50);
select last_name department_id,salary from employees order by department_id asc,salary desc;老师我的代码运行和视频不一样,就是last name这个
select last_name department_id,salary from employees order by department_id asc,salary desc;
用 try-y-with-resources可以吗
可不可让另一台电脑连接我的数据库
中文乱码的问题怎么解决
这个实现都是SAL+COMM为什么
老师老师,这个我不太懂这个知识点
老师,代码我自己研究了一下,说是可能sql有错误,但是我自己没有找到这个bug。
这怎么办啊,没有mysql
老师我这个出什么问题了
哪里有问题老师
package com.cai; import java.net.ConnectException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; /* 获取数据库连接测试类 */ public class JdbcTest { public static void main(String[] args) throws ClassNotFoundException, SQLException { //连接Mysql数据库的URL String url="jdbc:mysql://127.0.0.1:3306/bjsxt"; //连接数据库的用户名 String name="root"; //连接数据库的密码 String pwd="root"; //通过反射实现数据库驱动的加载与注册 Class.forName("com.mysql.jdbc.Driver"); //通过DriverManager对象获取数据库的连接对象 Connection connection=DriverManager.getConnection(url,name,pwd); System.out.println(connection); } }
没有找到错误,但是存在异常
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2024 百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637