收获日2怎么打不开:在数据库里替换的命令是什么
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 06:03:24
你是说查询数据库数据的时候吧:用decode
例:
out = decode(a, 1, b, c)
相当于
if(a == 1) {
out = b;
} else {
out = c;
}
你说的是更新数据库中的数据吧:
update table1 set colomn1='abc' where con
将表table1中满足条件con的colomn这一列的数据变为abc
update