[原创] firebird 的 一个表更新到另外一个表
2010-05-25 11:51
176 查看
firebird 的 一个表更新到另外一个表
使用存储过程
for select * from table1 into :f1,:f2,:f3 do
begin
update table2 set ff2 = :f2 ,ff3 = :f3 where ff1 = :f1
end
等价于 mssql
update table2 set ff2 = table1.f2 ,ff3 = table1.f3 from table1 where ff1=table1.f1
上面那个是否风格更加容易懂呢?
版本支持 :firebird 1.5 就支持
使用存储过程
for select * from table1 into :f1,:f2,:f3 do
begin
update table2 set ff2 = :f2 ,ff3 = :f3 where ff1 = :f1
end
等价于 mssql
update table2 set ff2 = table1.f2 ,ff3 = table1.f3 from table1 where ff1=table1.f1
上面那个是否风格更加容易懂呢?
版本支持 :firebird 1.5 就支持
相关文章推荐
- 表更新(将一个表的数据更新到另外一个表)
- 更新被拒绝,因为远程仓库包含您本地尚不存在的提交。这通常是因为另外 提示:一个仓库已向该引用进行了推送。再次推送前,您可能需要先整合远程变更
- [原创]自已动手写一个BootLoader(2006年12月27日更新有图)陆续更新中
- 这个博客目前不更新了,请关注另外一个博客!
- mongodb中直接根据某个字段更新另外一个字段值
- mongodb如何实现更新一个字段的值为另外一个字段的值?
- ecshop 中用商品属性表字段更新商品表 update 另外一个表的字段
- sqlserver 批量更新表中的值 把某个字段更新成另外一个表的某个字段
- python 采集MySQL数据,并更新到另外一个库
- SQL从一个表查询数据更新到另外一个表
- UPDATE 的使用(从另外一个表中检索值批量更新)
- [原创](2010.02.07更新)忙里偷闲中写的一个系统物理/虚拟内存查看器。
- 用一个表的记录更新另外一个表.
- 项目经验:oracle中一个用户赋予另外一个用户对表增删改查的权限以及同步更新触发器的创建
- 根据一个表更新另外一个表/多表更新
- 用一个表的数据更新另外一个表数据的用法(update from)
- 常用git命令(包含从一个远程仓库拉取更新同步到另外一个远程仓库)
- 把另外一个表的字段数据更新到本表的字段中
- [原创] ASP.NET 中如何弹出提示窗口然后导向另外一个页面
- [原创](2010.02.07更新)忙里偷闲中写的一个系统物理/虚拟内存查看器。