联想今年刚出の电脑怎么样啊~?想了解有关配置相关知识,~~谢谢哦~!

联想今年刚出の电脑怎么样啊~?想了解有关配置相关知识,~~谢谢哦~!,第1张

联想收购了ibm的pcd部门(也就是个人电脑部),包括台式机和thinkpad笔记本
ibm以后不出个人电脑了(服务器还是生产的)。
联想收购ibm的个人电脑业务后,可以生产thinkpad笔记本了。如果你认为thinkpad笔记本是最好的,那联想是生产了最好的笔记本,但不能认为联想是最好的。联想的笔记本系列很多(其中包括天逸,旭日,昭阳等),thinkpad只是其中之一。虽然收购了thinkpad,但联想的笔记本并没有因为收购thinkpad,而造成其它系列的笔记本也品质上升或接近thinkpad。所以联想其他机子还是老样子,二流货罢了。
所以说你要买IBM的 就要买联想的IBM系列 其他的也就是好一点的国产货

参考资料:

>--学生
create table t_xsb (xsbh number(10),xsxm varchar2(300));
comment on table t_xsb is '学生表';
comment on column t_xsbxsbh is '学生编号';
comment on column t_xsbxsxm is '学生姓名';
alter table t_xsb add constraints pk_xsb primary key (xsbh) using index;
--科目
create table t_kmb (kmbh number(10),kmmc varchar2(300));
comment on table t_kmb is '科目表';
comment on column t_kmbkmbh is '科目编号';
comment on column t_kmbkmmc is '科目名称';
alter table t_kmb add constraints pk_kmb primary key (kmbh) using index;
--成绩表
create table t_cjb
(cjbh number(10),
cjfs number(10,1),
xsbh number(10),
kmbh number(10));
comment on table t_cjb is '成绩表';
comment on column t_cjbcjbh is '成绩编号';
comment on column t_cjbcjfs is '成绩分数';
comment on column t_cjbxsbh is '学生编号';
comment on column t_cjbkmbh is '科目编号';
alter table t_cjb add constraints pk_cjb primary key (cjbh) using index;
alter table t_cjb add constraints fk_cjb_xsbh foreign key (xsbh)
references t_xsb(xsbh);
alter table t_cjb add constraints fk_cjb_kmbh foreign key (kmbh)
references t_kmb(kmbh);
--创建序列
create sequence sq_ls
increment by 1
start with 1000000000
maxvalue 9999999999
nocycle
nocache;
--创建学生表的before insert触发器,实现对学生表主键的自动增长列
create or replace trigger r_xsb
before insert on t_xsb
for each row
declare
v_xsbh number(10) := null;
begin
v_xsbh := sq_lsnextval;
:newxsbh := v_xsbh;
end;
--写一个存储过程,用游标循环每一个学生,
--每一次循环统计每一学生各个科目的成绩,打印到控制
create or replace procedure p_xscjtj is
v_xsbh number(10) := null;
v_xsxm varchar2(300) := null;
v_sx_nm number(10) := null;
v_yw_nm number(10) := null;
v_yy_nm number(10) := null;
v_zf_nm number(10) := null;
v_sx_ch varchar2(300) := null;
v_yw_ch varchar2(300) := null;
v_yy_ch varchar2(300) := null;
v_zf_ch varchar2(300) := null;
cursor c_xs is
select txsbh, txsxm from t_xsb t;
begin
dbms_outputenable(buffer_size => null);
open c_xs;
dbms_outputput_line(rpad(STR1 => '姓名',
PAD => ' ',
LEN => lengthb('姓名') + 5) ||
rpad(STR1 => '数学',
PAD => ' ',
LEN => lengthb('数学') + 5) ||
rpad(STR1 => '语文',
PAD => ' ',
LEN => lengthb('语文') + 5) ||
rpad(STR1 => '英语',
PAD => ' ',
LEN => lengthb('英语') + 5) ||
rpad(STR1 => '总分',
PAD => ' ',
LEN => lengthb('总分') + 5));
loop
fetch c_xs
into v_xsbh, v_xsxm;
exit when c_xs%notfound;
begin
select nvl(sum(case
when t2kmmc = '数学' then
t1cjfs
else
0
end),
0) sx,
nvl(sum(case
when t2kmmc = '语文' then
t1cjfs
else
0
end),
0) yw,
nvl(sum(case
when t2kmmc = '英语' then
t1cjfs
else
0
end),
0) yy,
nvl(sum(t1cjfs), 0) zf
into v_sx_nm, v_yw_nm, v_yy_nm, v_zf_nm
from t_cjb t1, t_kmb t2
where t1kmbh = t2kmbh
and t1xsbh = v_xsbh
group by t1xsbh;
exception
when others then
v_sx_nm := 0;
v_yw_nm := 0;
v_yy_nm := 0;
v_zf_nm := 0;
end;
v_xsxm := rpad(STR1 => v_xsxm, PAD => ' ', LEN => lengthb('姓名') + 5);
v_sx_ch := rpad(STR1 => v_sx_nm, PAD => ' ', LEN => lengthb('数学') + 5);
v_yw_ch := rpad(STR1 => v_yw_nm, PAD => ' ', LEN => lengthb('语文') + 5);
v_yy_ch := rpad(STR1 => v_yy_nm, PAD => ' ', LEN => lengthb('英语') + 5);
v_zf_ch := rpad(STR1 => v_zf_nm, PAD => ' ', LEN => lengthb('总分') + 5);
dbms_outputput_line(v_xsxm || v_sx_ch || v_yw_ch || v_yy_ch ||
v_zf_ch);
end loop;
close c_xs;
exception
when others then
dbms_outputput_line(sqlerrm);
end;


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zz/13448073.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-08-08
下一篇 2023-08-08

发表评论

登录后才能评论

评论列表(0条)

保存