【数据库】insert语句
来源:互联网 发布:sql 月份 分类合计 编辑:程序博客网 时间:2024/05/18 03:28
<insert id="insert" parameterType="net.huadong.entity.system.SystemRole">
insert into SYSTEM_ROLE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="role_code != null">
role_code,
</if>
<if test="description != null">
description,
</if>
<if test="sort_id != null">
sort_id,
</if>
<if test="disabled != null">
disabled,
</if>
<if test="id != null">
id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name},
</if>
<if test="role_code != null">
#{role_code},
</if>
<if test="description != null">
#{description},
</if>
<if test="sort_id != null">
#{sort_id},
</if>
<if test="disabled != null">
#{disabled},
</if>
<if test="id != null">
#{id},
</if>
</trim>
</insert>
insert into SYSTEM_ROLE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="name != null">
name,
</if>
<if test="role_code != null">
role_code,
</if>
<if test="description != null">
description,
</if>
<if test="sort_id != null">
sort_id,
</if>
<if test="disabled != null">
disabled,
</if>
<if test="id != null">
id,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
#{name},
</if>
<if test="role_code != null">
#{role_code},
</if>
<if test="description != null">
#{description},
</if>
<if test="sort_id != null">
#{sort_id},
</if>
<if test="disabled != null">
#{disabled},
</if>
<if test="id != null">
#{id},
</if>
</trim>
</insert>
阅读全文
0 0
- 数据库DML语句insert
- 【数据库】insert语句
- ABAP数据库操作之操作语句Insert
- 从数据库中获取Insert语句
- 从SQL Server数据库生成insert语句
- [数据库]添加记录Insert into 语句详解
- mysql数据库insert、delete、update语句总结
- Firebird数据库语句:update or insert
- MySQL数据库语句INSERT和REPLACE介绍
- MySQL数据库insert和update语句
- Oracle数据库自动生成insert语句
- ABAP数据库操作之操作语句Insert
- ABAP数据库操作之操作语句Insert
- insert语句
- insert语句
- insert语句
- insert 语句
- Insert语句
- 【转】实现多条件筛选、搜索、排序及分页的表格功能
- limit offset
- jQuery查找选中的checkbox个数
- 【js】v-for 的一些用法 :class {{index}}
- C#基础-020 常用随机数Random的用法以及字符串的初始化方式
- 【数据库】insert语句
- 【技巧】处理提交数据的技巧
- 数据库操作语句类型
- 【代码学习】角色添加权限的方法,先删除,再添加。而不是用修改,这样很方便。
- 【js】js取后台model值
- 4.8 leetcode -8 best-time-to-buy-and-sell-stock-ii
- Spring面试题
- 【学习】jstree的使用
- Jquery中 validate