mybatis 注解@Results、@Result、@ResultMap、@One的使用 column是数据库列名 property是实体类的属性名 javaType是实体类的类名(全路径格式) one对应的是一对一 many对应的是一对多 ...
分类:
其他好文 时间:
2020-07-29 12:36:35
阅读次数:
81
drop procedure if exists schema_change; delimiter ';;'; create procedure schema_change() begin if not exists( select * from information_schema.`COLUMN ...
分类:
数据库 时间:
2020-07-28 17:23:22
阅读次数:
92
修改表结构 语法: 1. 修改表名 ALTER TABLE 表名 RENAME 新表名; 2. 增加字段 ALTER TABLE 表名 ADD 字段名 数据类型 [完整性约束条件…], ADD 字段名 数据类型 [完整性约束条件…]; 3. 删除字段 ALTER TABLE 表名 DROP 字段名; ...
分类:
其他好文 时间:
2020-07-28 14:14:21
阅读次数:
65
el-table中单选的实现 引用场景: 选择单条数据进行业务操作 实现方式: 给el-table-column设置el-radio Template 代码 <div class="result-container"> <el-table :data="producList" border> <el ...
分类:
其他好文 时间:
2020-07-28 13:57:17
阅读次数:
139
// 1. 数据库数据 // { // "orders": { // 集合(表名) // "data": [ // 数据 // {"_id":4,"book":"novel 1","price":30,"quantity":2}, // {"_id":5,"book":"science 1" ...
分类:
数据库 时间:
2020-07-28 13:56:39
阅读次数:
80
if not exists(select * from sys.columns where [object_id] = object_id('szydytglhyytb') and name = 'SZYDYTGLHYYTB_HYBM') BEGINalter table szydytglhyytb ...
分类:
其他好文 时间:
2020-07-28 13:54:54
阅读次数:
56
最近项目在用mysql语句 指定非空,默认值为空字符串 NOT NULL DEFAULT '' 建表 CREATE TABLE IF NOT EXISTS `ims_test` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,`sid` int(11 ...
分类:
数据库 时间:
2020-07-27 23:47:51
阅读次数:
81
错误提示: 'packaging' with value 'jar' is invalid. Aggregator projects require 'pom' as packaging. @ line 3, column 110 问题背景: spring boot 聚合工程,clean 报如上错误 ...
分类:
编程语言 时间:
2020-07-26 02:01:07
阅读次数:
79
方法一: 再表对应的mapper.xml文件中 <resultMap type="实体对应的全路径" id="不重复的id值"> <result column="数据库中的列名" property="实体对象中的属性名"/> <result column="数据库中的列名" property="实体 ...
分类:
数据库 时间:
2020-07-26 00:45:46
阅读次数:
69
1 /*先定义个三线表*/ proc template; define style work.threeline; parent=styles.rtf; class table/ frame=hsides rules=group borderspacing=0pt; end; run; option ...
分类:
其他好文 时间:
2020-07-25 11:27:42
阅读次数:
93