文章标题
来源:互联网 发布:网络摄像头修改ip 编辑:程序博客网 时间:2024/06/06 03:21
JDBC连接Mysql数据库API:
String database = "test";String driver = "com.mysql.jdbc";String uri = "jdbc:mysql://localhost:3306/" + database;String user = "root";String password = "1234";String sql = ""; //sql语句try{ Class.forName(driver); Connection conn = DriverManager.getConnection(url,user,password); PreparedStatement pst = conn.prepareStatement(sql);}catch(ClassNotFoundException e){ e.printStackTrace();}catch(SQLException e){ e.printStackTrace();}
0 0
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- Git SSH Key 生成步骤
- oracle处理主键和自增的方法
- SAP-SD2: Master Data
- spring-boot 第一天 hello-world
- Codeforces #369 Div2 游记
- 文章标题
- 15.1.3
- 8.29Java课程笔记
- maven学习笔记二(ME下运行,nexus)
- leetcode_387 First Unique Character in a String
- 浅谈Spring事务隔离级别
- Android开发技术结构图
- 详解Paint的各种set方法
- 15.1.4