数据库的连接语句
一:Mysql的数据库连接语句 Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection. ("jdbc:mysql://localhost/bookinfo","root","123"); Statement st = con.createStatement(); String sql = "select * from book"; ResultSet
原创
2010-09-02 13:34:00 ·
867 阅读 ·
0 评论