c_bpartner_contact_trg.sql

来自「Java写的ERP系统」· SQL 代码 · 共 28 行

SQL
28
字号
CREATE OR REPLACE TRIGGER C_BPartner_Contact_Trg
AFTER INSERT OR UPDATE OF EMail
	ON C_BPartner_Contact
FOR EACH ROW
/*************************************************************************
 * 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-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
 *************************************************************************
 * $Id: C_BPartner_Contact_Trg.sql,v 1.3 2003/04/06 01:59:59 jjanke Exp $
 ***
 * Title:	Sync EMail of User - nop - mutating
 * Description:
 ************************************************************************/
BEGIN
	NULL;
	/**
	IF ((INSERTING AND :new.EMail IS NOT NULL) OR UPDATING) THEN
		UPDATE	AD_User
		  SET	EMail = :new.EMail
		WHERE	C_BPartner_ID = :new.C_BPartner_ID;
	END IF;
	**/
END C_BPartner_Contact_Trg;
/

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?