![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
mysql-mybatis-mybatisplus
相※濡
这个作者很懒,什么都没留下…
展开
-
oracle-基础语法 (函数,语法)
基础概念: 一个数据库有多个表空间,一个表空间多个用户,一个用户多张表。 1、创建表空间 create tablespace itcast datafile 'c:\itcast.dbf' size 100m autoextend on next 10m 2、创建用户 create user itcastuser -- 用户名 identified by itcast -- 密码 default tablespace itcast -- 表空间 3、用户权限 新创建的用户没有任何权限,授权 g原创 2020-12-29 15:06:28 · 648 阅读 · 1 评论 -
mybatis---复杂sql
1 查询实体类,其中一个字段的值在另外一张表中 实体类字段定义 @TableField(exist=false) private String createUserName; <select id="getMaterialApplyByBillNum" resultMap="materialApply"> select apply.*, (select emp_name from employee emp where emp.emp_code = appl原创 2020-12-17 20:32:05 · 238 阅读 · 0 评论 -
mybatis的基础语法
mybatis的基础语法 实体类 public class User { private Integer id; private String username; private Date birthday; private String sex; private String address; } UserMapper.java public interface UserMapper { User findUserById(原创 2020-12-17 17:17:18 · 188 阅读 · 0 评论