---
title: "删除oracle末用户的表数据"
author: "mengjichen"
date: "2015-03-10T16:01:27Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2015-03-10T16:01:27Z"
id: 2191082
url: "https://mengjichen.iteye.com/blog/2191082"
---

begin
 for cr in (select o.object_name a from dba_objects o where o.owner='TEST' and o.object_type = 'TABLE' order by o.object_name) loop
 dbms_output.put_line(CONCAT(CONCAT('delete from ',cr.a),'; '));
end loop;
end;