字段的操作 | 操作的方法(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;) |
Oracle中修改表列名(SQL语句)
猜你喜欢
转载自blog.csdn.net/weixin_42495773/article/details/83042199
今日推荐
周排行