重命名表结构数据库
作者:互联网
1、复制表结构
create table sms_send_record_bak_202220615 as select * from sms_send_record where 1=2;
2、插入短信数据
insert into sms_send_record_bak_202220615 select * from sms_send_record where send_date > to_date('2022-05-1 00:00:00','yyyy-mm-dd hh24:mi:ss')
3、查询数据短信
select * from sms_send_record_bak_202220615;
4、重命名
//RENAME sms_send_record TO sms_send_record_bak_202220614;
//RENAME sms_send_record_bak_202220615 TO sms_send_record;
//RENAME sms_send_record_bak_202220614 TO sms_send_record_bak_202220615;
标签:重命名,RENAME,数据库,sms,send,record,202220615,bak,结构 来源: https://www.cnblogs.com/zhoading/p/16377860.html