当前位置:网站首页>0801~面试题梳理
0801~面试题梳理
2022-08-02 12:27:00 【生活可真难啊】
存储引擎InnoDB和MyISAM的区别是什么?
InnoDB支持事务,而MyISAM不支持事务;
InnoDB可以设置外键,而MyISAM不支持外键;
InnoDB查询select count(1)需要权表扫描,而MyISAM有变量来统计数量;
InnoDB是聚簇索引,而MySAM是非聚簇索引;
truncate、delete、drop的区别是什么?
truncate是删除整个表的数据;
delete判断条件为id就直接删除id对应的数据,如果直接from表名就直接删除整张表的数据;
drop可以用来删除表(drop from 表名),也可以用来删除数据库(drop from 数据库);
执行速度 drop>truncate>delete
边栏推荐
猜你喜欢
随机推荐
How to better assess credit risk?Just watch this scorecard model live
如何搭建威纶通触摸屏与S7-200smart之间无线PPI通信?
Intelligent Image Analysis-Intelligent Home Appliance Image Target Detection Statistical Counting Detection and Recognition-iCREDIT
力扣58-左旋转字符串
Import and export data of SQL Server database
ABAP-OOAVL template program
Likou 58 - Left Rotation String
基于深度学习的裂缝检测技术
Speed up your programs with bitwise operations
sql concat()函数
手撸架构,Redis面试41问
基础协议讲解
Pod调度策略:亲和性、污点与污点容忍
kvm部署
服务器间传输文件
内存存储结构
Distributed current limiting, hand & redisson implementation
JVM简介
MySQL主从复制几个重要的启动选项
The 7 most commonly used data analysis thinking, solve 95% of the analysis problems