replace批量替换、表删除数据查询用法

一.

select * from baec_file where bacti='1'order by baec01;

select baec02,REPLACE(baec02,'白班','A班') from baec_file where bacti='1';

---对于没有sql无撤回功能,一定要先查出要替换的记录数,确认无误再执行替换

update baec_file
set baec02=REPLACE(baec02,'晚班','B班')
where bacti='1' ;

二.

 select * from qcs_file  as of timestamp sysdate-1/24  where qcs01='320-KT21121500'     ----1/24表示过去的一小时内,这个sql针对单张表

 

posted @ 2021-12-13 14:36  三生有幸格格  阅读(140)  评论(1编辑  收藏  举报