Sort out Java and mysql knowledge points (for interviews)
1. Four categories of SQL language:
DQL 数据查询语言 select
DML 数据操纵语言 insert、update、delete
DDL 数据定义语言 create、alter
DCL 数据控制语言 grant权限
2. The decimal type in the mysql database (it is a numeric type and cannot store strings):
举例:decimal(18,0) 常用于身份证号码,但是带x的不可以。
举例:decimal(5,2)
情况一:假如小数点前面是3位,后面是2位,正常情况。
情况二:5指的是小数点前后不能超过5位,小数点后必须是2位。
3. The difference between InnoDB and MyISAM engines in mysql:
innodb支持:事务和主外键
myisam不支持:事务和主外键