update语句
语句 update
2023-09-11 14:18:37 时间
<update id="updateOrgEntity"> UPDATE t_base_org t <trim prefix="set" suffixOverrides=","> <if test="orgCode!=null">t.org_code=#{orgCode},</if> <if test="orgName!=null">t.org_name=#{orgName},</if> <if test="companyCode!=null">t.company_code=#{companyCode},</if> <if test="companyName!=null">t.company_name=#{companyName},</if> <if test="province!=null">t.province=#{province},</if> <if test="city!=null">t.city=#{city},</if> <if test="county!=null">t.county=#{county},</if> <if test="street!=null">t.street=#{street},</if> <if test="provinceName!=null">t.province_name=#{provinceName},</if> <if test="cityName!=null">t.city_name=#{cityName},</if> <if test="countyName!=null">t.county_name=#{countyName},</if> <if test="streetName!=null">t.street_name=#{streetName},</if> <if test="orgAddress!=null">t.org_address=#{orgAddress},</if> <if test="orgActive!=null">t.org_active=#{orgActive},</if> <if test="orgKind!=null">t.org_kind=#{orgKind},</if> <if test="orgPerson!=null">t.org_person=#{orgPerson},</if> <if test="orgPersonMobile!=null">t.org_person_mobile=#{orgPersonMobile},</if> <if test="modifyTime!=null">t.modify_time=#{modifyTime},</if> <if test="modifyUserCode!=null">t.modify_user_code=#{modifyUserCode},</if> <if test="modifyUserName!=null">t.modify_user_name=#{modifyUserName},</if> <if test="orgType!=null">t.org_type=#{orgType},</if> <if test="orgPhone!=null">t.org_phone=#{orgPhone},</if> <if test="jingwei!=null">t.jingwei=#{jingwei},</if> <if test="parentCode!=null">t.parent_code=#{parentCode},</if> </trim> <choose> <when test="id !=null"> where id=#{id} </when> <otherwise> WHERE t.org_code=#{orgCode} AND t.company_code=#{companyCode} </otherwise> </choose> </update>
相关文章
- 软测百科之 日常测试工作中哪些是必须知道的 SQL 语句?
- Java基础篇(03):流程控制语句,和算法应用
- SQL UPDATE 语句
- EF操作数据库的步骤和一些简单操作语句
- Sql Server 函数的操作实例!(执行多条语句,返回Select查询后的临时表)
- ul和li简单语句实现DIV+CSS分两列(多列)布局显示(转)
- Android SQLite使用事务来确保所有语句都以原子方式执行及保证数据完整性一次执行多条语句示例
- MySql常用语句更新(update...)
- [转]MySQL-5.7 Update语句详解
- [转]MySQL update join语句
- SQL语句update set 嵌套 case when以及MyBatis中的写法
- SQL语句update set 嵌套 case when以及MyBatis中的写法
- Shell流程控制语句for
- 将根据字符查询转换后输出结果,规则为:’A’转换为’男’,’B’转换为’女’,其他字符转换为’未知’,请用一个SQL语句写出。
- 《C++游戏编程入门(第4版)》——2.4 使用带else子句的if语句序列
- oracle update语句的几点写法
- 翻译:update语句(已提交到MariaDB官方手册)
- 转 sql 语句性能比较慢 执行计划
- 在Html.ActionLink中运用二维判断语句
- 浅析SqlServer简单参数化模式下对sql语句自动参数化处理以及执行计划重用
- sql server中同时执行select和update语句死锁问题
- SQL语句记了又忘?常用的SQL语句,配语句和图解超详细o
- C语言循环语句专项练习题
- select语句for update---转载
- Java小白入门200例47之 break语句详解
- SQL Server 多表关联的update语句
- 原因就是程序跑得太快,框还没来得急出现。在clienttrader.py里加一句延时的语句就行