穷鬼:oracle里有类似replace的语句吗??(10分)

  • 主题发起人 Celestial dog
  • 开始时间
C

Celestial dog

Unregistered / Unconfirmed
GUEST, unregistred user!
field aa bb cc......
1 2 3......
4 5......
实现aa bb cc......
4 2 5......
 
update tablename set a=x,b=y where .....
 
update tablename set aa=max(aa),bb=max(bb), cc=max(cc)
(还是不知道你的意思)
 
Oracle里面有replace函數呀﹖不懂你的意思﹖如果你要最大值﹐似乎上面的可以。
 
是我没说明白,其实我要的就是replace,可惜我怎么用不了??
 
用SQL语句:
update tablename set aa=4,cc=5 where bb=2
(或其他定位)
 
4,5在程序中会变的,用update不怎么好写
 
多人接受答案了。
 

Similar threads

D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
775
DelphiTeacher的专栏
D
S
回复
0
查看
987
SUNSTONE的Delphi笔记
S
S
回复
0
查看
805
SUNSTONE的Delphi笔记
S
顶部