摘要:
马上就要期中考试了,把最近靠自己学的知识总结一下(自己学的),以下为eclipse的一个界面 可以看出,有很多内容。首先,有好几个包,Bean,Dao,servlet,service,Util,Util中是连接数据的通用代码,Dao1是连上数据库的操作代码,Bean是一些数据库的元素的定义与构造方法 阅读全文
posted @ 2022-10-26 23:16
实名吓我一跳
阅读(83)
评论(0)
推荐(0)
摘要:
//添加 public static int add(Bean1 bean){ String sql = "insert into classtable(classname,teacher,address,time) values('" +bean.getClassname() + "','" + 阅读全文
posted @ 2022-10-26 22:40
实名吓我一跳
阅读(52)
评论(0)
推荐(0)
摘要:
import java.sql.*;//导入包 public class Util1 { //基本配置 static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; static final String DB_URL = "jdbc:m 阅读全文
posted @ 2022-10-26 22:27
实名吓我一跳
阅读(25)
评论(0)
推荐(0)
摘要:
最近都在忙期中考试,写博客的频率有点低了,以下是一些基本代码,是王建民老师说的要建立自己的资料库,我直接建的资料库。 画图html <!--定义表格宽度 行距 宽度<tr>行<td> 单元格<th> 表头单元格--><table border="1" cellspacing="0" width="5 阅读全文
posted @ 2022-10-26 22:25
实名吓我一跳
阅读(57)
评论(0)
推荐(0)
浙公网安备 33010602011771号