Oracle中修改表列名(SQL语句)

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:16   1705   0
字段的操作操作的方法(SQL
修改列名(更新字段)alter table 表名 rename column 原列名 to 新列名;
添加列alter table 表名 add 列名 列类型;
删除列alter table 表名 drop column 列名;
添加列并赋值alter table 表名 add 列名 列类型 default 需要赋的值;
修改列的数据类型alter table 表名 modify 列名 列数据类型;
insert into 表名 values(字段1,字段2,字段3,......);
delete from 表名 where 列名 = 值;

改(单个字段数据)

改(多个字段数据)

update 表名 set 列名 =where 判断条件;(如:where id = 100

update 表名 set 列名1 = 值1, 列名2 = 值2 where 判断条件;(如:

update t_user set name = '张三',password = '123456' where id = 10;

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP