📄 deletelanguage.sql
字号:
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CRM
* Copyright (C) 1999-2002 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: DeleteLanguage.sql,v 1.3 2003/02/20 06:42:13 jjanke Exp $
***
* Title: Delete Language
* Description:
************************************************************************/
DECLARE
v_Language VARCHAR2(10) := 'xx_XX';
CURSOR Cur_Tables IS
SELECT TableName
FROM AD_Table
WHERE TableName like '%_Trl';
v_Cmd VARCHAR2(256);
BEGIN
FOR t IN CUR_Tables LOOP
v_Cmd := 'DELETE ' || t.TableName || ' WHERE AD_Language=''' || v_language || '''';
DBMS_OUTPUT.PUT_LINE('.. ' || t.TableName);
EXECUTE IMMEDIATE v_Cmd;
DBMS_OUTPUT.PUT_LINE(t.TableName || '=' || SQL%ROWCOUNT);
END LOOP;
END;
/
COMMIT
/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -