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,关闭连接
}
}
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,关闭连接
}
}