摘要: 首先,这里的JavaWeb使用JDBC的方法与Java的使用方法相似,但是有不同之处: 在Java中导入驱动包以后,直接用DriverManager.getConnection()获取连接对象, 而在JavaWeb中,必须首先注册驱动: Class.forName("com.mysql.jdbc.Driver"); DriverManager.registerDrive... 阅读全文
posted @ 2015-05-02 22:19 ithaibo 阅读(135) 评论(0) 推荐(0)
摘要: JDBC简介JDBC(Java Data Base Connectivity,java数据库连接)是一种用于执行SQL语句的Java API,可以为多种关系数据库提供统一访问,它由一组用Java语言编写的类和接口组成。本文中中使用的数据库数据库软件:MySQL5.6数据库:test表:student... 阅读全文
posted @ 2015-05-02 19:07 ithaibo 阅读(291) 评论(0) 推荐(0)
摘要: 表名:student 表结构及数据: +----+--------+---------+------+------------+--------------+---------+ | id | name | english | math | birthday | native_place | chinese | +----+--------+---------+------+... 阅读全文
posted @ 2015-05-02 16:58 ithaibo 阅读(1012) 评论(0) 推荐(0)
请留下你的高见