您的位置:首页 > 其它

Second Interview NJFH

2015-11-13 22:31 288 查看
1、C/S、B/S的区别:
两层结构的C/S前端是客户机后端是服务器

三层结构的B/S 浏览器/服务器

B/S维护成本高 维护成本低不需要软件

C/S需要软件的支持 但是服务器得配置高

2、数据库

1)

delete 与drop

delete table_name 只删除表中的数据

drop table table_name 删除的是表本身,即删除表和表中的数据

2)

where子句查询与having子句查询类似,不同的是where子句限定于行的查询,having子句则限定于统计组的查询

having子句一般与group by一起使用

ag:

select claid,stusex,COUNT(student.stusex) from student

group by student.stusex,student.claid

having student.stusex='男'

and COUNT(student.stusex)>1

3)

order by对查询结果进行排序,默认情况ASC升序,DESC表示降序

ag:

select * from student order by stubirthday DESC

4)

group by对查询结果进行分组

ag:

select claid as 班级 ,COUNT(*) as 班级人数 from student

group by claid

5)Oracle数据库——甲骨文公司
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: