SQL的一个基础小问题。。。

来源:百度知道 编辑:UC知道 时间:2024/06/09 07:21:18
id name
3 null

name这个列是我新添加进去的,我想修改name下面那行的值,不让他显示NULL,请问查询器里打什么命令?

update 表 set name='dfas' where id=3

update 表名 set [name] = 你要显示的值 where [name] is null

update 表名 set [name]='随便' where id=3
就是改个值

create table temp_表名(id number(6),name char(50)
select id,case name when null then "" end
from 表

这个试试