![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
文章平均质量分 78
嘟嘟还没长大
这个作者很懒,什么都没留下…
展开
-
linux中mysql8设置不区分表名大小写
第一种:安装好mysql后,先设置好配置文件,然后在启用mysql找到linux中mysql配置文件 my.cnf命令: which mysqld命令: /usr/sbin/mysqld --verbose --help |grep -A 1 ‘Default options’读取的顺序 /etc/my.cnf /etc/mysql/my.cnf ~/.my.cnf在/etc/my.cnf中的mysqld节点下添加 lower_case_table_names=1 表示不区分表名大小写启动原创 2020-12-27 00:34:30 · 5884 阅读 · 2 评论 -
mybatis中There is no gettter for property named ‘xxx‘ in ‘class java.lang.Long‘异常
一般在mybatis中遇到这个问题,首先按报错提示看实体类是否缺少getter(一般很少出现),接着考虑是不是SQL中字段与实体类中的字段拼写不同,其次考虑是不是传多个参数,且没有添加@param("")的参数错误再现Dao层接口 List<InvestigationalSiteEntity> getInvestigationalSiteListByDdcId(@Param("ddcId") Long ddcId,@Param("related") Integer related);原创 2020-12-06 09:58:24 · 292 阅读 · 2 评论 -
Mybatis在xml中的结果映射
1、准备表和数据drop table if exists classes;create table classes( id bigint(20) primary key auto_increment, class_name varchar(20) not null comment'班级名', amount int not null comment '班级人数', head_teacher_id bigint(20) null comment '班主任')ENGINE=I原创 2020-12-12 14:15:05 · 318 阅读 · 0 评论 -
数据库系统——数据库物理存储
计算机系统存储体系数据库存储与检索问题两个基本问题?如何高效的存储?-- 数据组织和索引如何快速的检索?-- 查询实现与查询优化数据库组织基础-- 存储体系操作系统如何管理磁盘和数据操作系统对数据组织:FAT-目录(文件夹)-磁盘块/簇FAT(文件分配表-File Allocation Table)一个磁盘块/簇可以是一个扇区或者多个扇区缓冲区的管理一条记录的地址 = 存储单元地址 = 内存地址 = 页面 : 页面偏移量页面 = 块内存页面的分配:申请内存,操作系统进行分配原创 2020-11-09 11:33:10 · 2979 阅读 · 2 评论 -
数据库系统—SQL建表+基础
1、 表定义1.1建表语句create table 表名 (属性 类型,属性 类型,…)create table student( ID int primary key auto_increment, name varchar(20), age int, check(age>0))1.2删除表语句drop table 表名drop table student1.3修改表语句(修改属性或者类型)表增加属性alter table student add cl原创 2020-11-03 10:06:46 · 4930 阅读 · 0 评论