982902178@qq.com
wisdom1one@qq.com
wisdom_a@qq.com
qazsq@foxmail.com
修改用户名密码:
语句:alter user 用户名 identified by 密码; 如果密码中含有特殊字符,则需要将密码用双引号括起来。
example:
alter user prsp identified by “k2yAq^ud1”;
案例
- 增加临时新字段
alter table 表名 add 新字段名 clob; - 复制内容
update 表名 set 新字段名=旧字段名; - 删除原有字段
alter table 表名 drop column 旧字段名; - 修改回原字段名
alter table 表名 rename column 新字段名 to 旧字段名;
增加临时新字段
alter table act_hi_taskinst add newlog varchar2(4000);
复制内容
update act_hi_taskinst set newlog = description_;
删除原有字段
alter table act_hi_taskinst drop column description_;
修改回原字段名
alter table act_hi_taskinst rename column newlog to description_;