河南特岗教师考试:在数据库里替换的命令是什么

来源:百度文库 编辑:中科新闻网 时间:2024/05/08 02:36:56

你是说查询数据库数据的时候吧:用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