当前位置:网站首页>程序员面试这么重视考察概念还是第一次见
程序员面试这么重视考察概念还是第一次见
2022-06-13 11:03:00 【爱开发V】
程序员面试都这么重视考察概念了吗?
一朋友是一名程序员,做java开发的,有两年多的开发经验,坐标广州。
有次到科韵路信息港一家软件公司应聘软件开发岗位。
面试官给了他一份笔试题,其中有两道题目是这样的:
1.DDL、DML全称是什么,两者之间有什么区别?
2.MYSQL中delete和drop有什么区别?
感觉这样的笔试题过于基础,考察刚毕业的求职者还好,要是考察有工作经验的,意义不大,还不如用这个时间多问问应聘者的项目经验。
对于这两道题目,可能一时间记不起来,我们简单汇总下。
DDL(data definition language)数据定义语言,用户定义和管理sql数据库中所有对象的语言。
主要命令:create、alter、drop等
DML(data manipulation language)数据操作语言。
主要命令:select、update、insert、delete等
drop命令主要用于删除数据结构,包括内部的数据内容。(drop database database_name;drop table table_name)
delete命令主要用于删除数据内容,不删除数据结构。(delete 字段名 from 表名 where 条件)
可以使用delete命令执行回滚操作,因为它使用缓冲区,执行时触发相应的trigger;但在使用drop命令的情况下无法操作回滚,操作时不触发trigger。
由于delete命令不删除表,因此不会释放任何空间;而drop命令会删除整个表,从而释放内存空间。
往期推荐
left join和left outer join 有什么区别?
group by 1,2 、having的用法,你知道多少?
边栏推荐
- 【TcaplusDB知识库】TcaplusDB单据受理-建表审批介绍
- Ue5 small knowledge points geometry script modeling
- Mysql database conceptual design using E-R model
- Codeforces Round #798 (Div. 2)ABCD
- 宝塔中查看mysql默认密码
- Inclusion exclusion principle (number divisible)
- Pyepics download and installation
- C# 文件打包下载
- Database system concept (Chapter 17)
- d编译时生成唯一标识
猜你喜欢

2021ccpc online competition list

Codeforces Round #798 (Div. 2)ABCD

硬件工程师薪资虚高,你认可吗?

F2. nearest beautiful number (hard version)

Vivo large scale kubernetes cluster automation operation and maintenance practice

Database learning notes (Chapter 15)

17张图:读懂国内首个《主机安全能力建设指南》

Ue5 small knowledge points geometry script modeling

什么是400G以太网?

View the default MySQL password in the pagoda
随机推荐
2021ccpc online competition list
Pagoda access changed from IP to domain name
第六章 I/O管理作业
Flutter simple and excellent open source dialog uses free_ dialog
d编译时生成唯一标识
[tool chain series] Notepad++
Environ. Sci. Technol. (if=9.028) | impact of urban greening on atmospheric environment
SSM整合初步 所得细节
C file package and download
We spent a weekend migrating 3.7 million lines of code to typescript
DNS协议分析
【TcaplusDB知识库】Tmonitor系统升级介绍
Database system concept (Chapter 17)
Necessary for Architects: system capacity status checklist
C# 文件打包下载
Big O notation interpretation
Vivo large scale kubernetes cluster automation operation and maintenance practice
There is no suspense about the first one in the overtime table of the Internet company!
状态压缩DP例题(旅行商问题和填矩形问题)
Acwing game 55