sybase update ,insert
来源:互联网 发布:matlab 定义三维数组 编辑:程序博客网 时间:2024/06/05 09:37
学习学习:
sybase 根据字段值改多条记录
update A set
a.bbv=(case a.bby
when '1' then '100'
when '2' then '200'
when '3' then '300'
end),
a.bbc=(case a.bby
when '1' then 'a'
when '2' then 'b'
when '3' then 'c'
end),
a.bbf=(case a.bby
when '1' then 'e'
when '2' then 'd'
when '3' then 'f'
end)
from A a
意思是,A表有 bby,bbv,bbc,bbf 四个字段,当bby = 1时,其余三个值为别改为:100,a,e
insert union 连用的写法
insert into A
select '1','2','3','4'
union all
select '5','6','7','8'
union all
select '9','10','11','12'
完成一次插入多条数据
- sybase update ,insert
- INSERT INTO UPDATE
- UPDATE or INSERT?
- Insert Update Delete Select
- Insert , Update , Delete 触发器
- Update/insert trigger
- mysql-insert or update
- mysql insert update语句
- MySQL insert update语句
- Insert,Update,Delete操作
- mysql-insert or update
- dynamic-insert,dynamic-update
- mybatis 批量insert,update
- mybatis insert & update
- insert、delete、update、replace
- mybatis 批量insert , update
- mysql update,insert常用
- informatica PowerCenter workflow:INSERT/UPDATE AS UPDATE/UPDATE AS INSERT
- 关于ExecuteNonQuery()返回值为-1
- JAVA基础面试中的几个问题[转]
- usb-skeleton.c 之 16---skel_probbe 重头戏
- jquery 验证框架 validate
- 小小感悟
- sybase update ,insert
- VC中用ADO和DataGrid控件显示和更新数据库中的数据
- 外键
- 谷歌手机日历同步设置Google Sync: Setup Instructions
- Under the Hood of J2EE Clustering
- 大家来评评这样的深圳房东...
- 实战Linux Bluetooth编程 (九) SDP层编程
- UUzone倒下了 360quan也倒下了 下一个是谁?(转)
- C++ 笔记点滴