151220DBOperate

来源:互联网 发布:国外优秀搜索引擎 知乎 编辑:程序博客网 时间:2024/05/18 03:41
package java151220;


public class DBOperate {
public static void main(String[] args) {
// UserInfoDao uiDao=



}


}


interface UserInfoDao{

}




/*
  需求:数据库的操作 1,连接数据库 JDBC Hibernate 2,操作数据库 c create r read u update d delete
 3,关闭数据库连接
 */
class UserInfoByJDBC implements UserInfoDao{
public void add() {
//1,连接数据库 ,2,使用sql添加语句数据库3,关闭连接

}
public void delete() {
//1,连接数据库,2,使用sql添加语句数据库3,关闭连接

}
}
0 0
原创粉丝点击