h3cac配置命令:在数据库里替换的命令是什么

来源:百度文库 编辑:高考问答 时间:2024/05/15 15:48:52

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