这类问题
有没有解题思路
或者给个码我试试
主要是没学习多久,对于数据表的应用和命令比较弱。
你得把表结构提供出来
select * from t_student where major_id=(selsect id from t_major where name='云计算技术');
select s.* from t_student s left join t_score c on s.id =c.student_id where c.student_id is null;
select * from t_score where major_id in (selsect id from t_major where name='移动互联应用开发');
insert into t_student(stu_id,stu_name....) values("",""....);
update t_student set major_id = '31601' where stu_name = '王洪';
delete from t_student where stu_birthday<'1999-01-01';
池化思想:这种设计会初始预设资源,解决的问题就是抵消每次获取资源的消耗,如创建线程的开销,获取远程连接的开销等。
数据库连接池:数据库连接池可以看做是维护数据库连接的缓存,以便于将来需要对数据库请求时可以常用这些连接。
为什么需要:在连接池中创建连接后,将其放置在池中,并再次使用它,因此不必创建新的连接,如果使用了所有连接,则会创建一个新连接并将其添加到池中。