![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 65
DavidL
这个作者很懒,什么都没留下…
展开
-
jdbc连接mysql数据库
添加Mysql jdbc驱动自不必说,数据库连接类Connection,操作数据库的句柄类Statement, 创建连接对象 Connection con = null; Statement stmt = null; 连接mysql数据库 String url = "jdbc:mysql://localhost:3306/javaTest";//mysql数据库url S原创 2013-11-01 10:35:16 · 689 阅读 · 0 评论 -
java date转化为mysql中的Datetime格式
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");//时间格式转化 Date date = new Date(); String strTime = dateFormat.format(date); preparedStatement 的使用 pre = (PreparedStatemen原创 2013-11-01 15:09:35 · 1578 阅读 · 0 评论