(3) delete from tableqq where >
(4) insert into tableqq values(5555,’1234′);
//删除表
(5)drop table tableqq;
2. 有关系 s(sno,sname) c(cno,cname) sc(sno,cno,grade)
1 问上课程 “db”的学生
2 成绩最高的学生号
3 每科大于90分的人数
答案:
(1)select s.sno, s.cname
from s, c, sc
where s.sno = sc.sno and c.cno = sc.cno and c.cname = ‘db’;
(2)select sno, max(grade)from sc group by sno;
(3)select cno, count(sno) from sc where grade > 90 group by cno;
*************
=
操作系统 网络
=
1. 描述实时系统的基本特性
答案:在特定时间内完成特定的任务,实时性与可靠性。
2. internet采用哪种网络协议?该协议的主要层次结构?
答案:tcp/ip协议。应用层、传输层、网络层、数据链路层和物理层。
3. internet物理地址和ip地址转换采用什么协议?
答案:地址解析协议arp address resolution protocol
4. ip地址的编码分为哪俩部分?
答案:网络号和主机号。不过是要和“子网掩码”按位与上之后才能区分哪些是网络位
哪些是主机位。
10 二分查找是 顺序存储 链存储 按value有序中的哪些
大题:
1 把字符串转换为小写,不成功返回null,成功返回新串
char* tolower(char* ssrcstr)
{
char* sdest= null;
if( __1___)
{
int j;
slen = strlen(ssrcstr);
sdest = new [_______2_____];
if(*sdest null)
return null;
sdest[slen] = ‘′;
while(_____3____)
sdest[slen] = tolowerchar(ssrcstr[slen]);
}
return sdest;
}