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数据库——甲骨文公司
两层结构的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数据库——甲骨文公司
相关文章推荐
- json_encode和json_decode陷阱
- Mysql学习笔记二, 表类型(存储引擎)的选择
- WCF 远程服务器返回了错误: NotFound
- android抽屉效果
- linux命令-yum工具详解
- 使用Javascript监控前端相关数据
- [Leetcode]Spiral Matrix
- mysql IN 比等价的OR写法效率更高
- 2015月11月13日
- Strchr()函数详解
- swift中操作string
- Android新特性v7 - CardView
- Log One(phpmyadmin中使用配置文件中定义的控制用户连接失败问题 :)
- HBase shell scan 模糊查询
- LINQ To SQL && Lambda 练习题
- 个人博客作业Week7(阅读文章,心得体会)
- 归档解档
- spring mvc 注解 annot失效
- 一步一步写平衡二叉树(AVL树)
- mingw