Home > Back-end >  Update table using with temp CTE
Update table using with temp CTE

Time:01-13

%sql
with temp1 as 
(
  select req_id from table1 order by timestamp desc limit 8000000
)
    
update table1  set label = '1'  where req_id in temp1 and req_query like '%\<\/script\>%' 

update table1  set label = '1'  where req_id in temp1 and req_query like '           
  •  Tags:  
  • Related