Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

MSSQL´¥·¢Æ÷Ϊʲô×Ô¶¯É¾³ýÁË??????????

ÏÂÃæÊÇÎÒ´´½¨µÄÒ»¸ö´¥·¢Æ÷,µ±¹â·üµç³ØÊýÖµ³¬¹ýÉ趨µÄ·¶Î§¾Í»á²åÈë¹ÊÕϱí,
µ«ÊÇÔÚ¸Õ¸Õ½¨Á¢µÄ´¥·¢Æ÷ʱ,¿ÉÒÔ½«¹ÊÕÏÊý¾Ý²åÈëµ½¹ÊÕϱí,Ö®ºóÕâ¸ö´¥·¢Æ÷¾Í×Ô¶¯ÏûʧÁË.Ò²¾ÍÊÇ´´½¨¹ýºóÖ»ÔËÐÐÒ»´Î.
(Ææ¹ÖµÄÊÂ,ÎÒµÄÁíÒ»¸ö±íÓõÄÊÇͬÑùµÄÓï·¨½á¹¹,Ò²ÓÃÁË´¥·¢Æ÷,Õâ¸ö´¥·¢Æ÷ûÓÐÏûʧ,Õý³£ÔËÐÐ)

ÒÔÏÂÊÇ´úÂë:
 use GFZX1

IF EXISTS (SELECT NAME from SYSOBJECTS WHERE XTYPE = 'TR' AND NAME = 'T_FUALTJUDGE_¹â·üµç³ØAgent')
DROP TRIGGER T_FUALTJUDGE_¹â·üµç³ØAgent
GO

CREATE TRIGGER T_FUALTJUDGE_¹â·üµç³ØAgent
ON ¹â·üµç³ØAgent
FOR INSERT,UPDATE
AS BEGIN

DECLARE @¹â·üID char(20)
SET @¹â·üID=(SELECT ¹â·üID from INSERTED)

DECLARE @¹â·üÃû³Æ varchar(50)
SET @¹â·üÃû³Æ=(SELECT ¹â·üÃû³Æ from INSERTED)


DECLARE @΢ÍøAgentID char(20)
SET @΢ÍøAgentID=(SELECT ΢ÍøAgentID from INSERTED)

DECLARE @·¢µçÁ¿ float
SET @·¢µçÁ¿=(SELECT ·¢µçÁ¿ from INSERTED)

DECLARE @¿ªÂ·µçѹ float
SET @¿ªÂ·µçѹ=(SELECT ¿ªÂ·µçѹ from INSERTED)

DECLARE @¶Ì·µçÁ÷ float
SET @¶Ì·µçÁ÷=(SELECT ¶Ì·µçÁ÷ from INSERTED)


DECLARE @×î´ó·¢µçÁ¿ float
SET @×î´ó·¢µçÁ¿=(SELECT ×î´ó·¢µçÁ¿ from INSERTED)

DECLARE @¿ªÂ·µçѹ×î´óÖµ float
SET @¿ªÂ·µçѹ×î´óÖµ=(SELECT ¿ªÂ·µçѹ×î´óÖµ from INSERTED)

DECLARE @¶Ì·µçÁ÷×î´óÖµ float
SET @¶Ì·µçÁ÷×î´óÖµ=(SELECT ¶Ì·µçÁ÷×î´óÖµ from INSERTED)

DECLARE @×îС·¢µçÁ¿ flo


Ïà¹ØÎÊ´ð£º

¹ØÓÚMSSQLÔ¼ÊøÃû³ÆµÄÎÊÌâ - MS-SQL Server / »ù´¡Àà

×ֶεÄĬÈÏÖµÔ¼ÊøÉúËùµÄÔ¼ÊøÃû³Æϵͳ³£³£ÔÚºóÃæÌíÉÏÒ»¸öËæ»úµÄ×Ö·û´®£¬
Èç
DF__Admin__locked__014935CB
ÕâÑùÔì³ÉÒÔºóÔÚÐ޸ĸÄÔ¼ÊøµÄʱºòºÜÂé·³£¬ÔõôÉèÖò»ÈÃÊý¾Ý¿â×Ô¶¯Éú³ÉÕâÑùµÄËæ»úÃû³ÆµÄÔ¼ÊøÃû³Æ
¶øÏòÕâÑù ......

mssql£¬mysqlÓëmstlq

·´ÕýÎÒÊǾ­³£·Ö²»Çå¡­¡­
¼ÌÐøÉ¢·Ö
µÚÒ»¸ö±ÕÔ´£¬µÚ¶þ¸ö¿ªÔ´£¬µÚÈý¸öûŮÈËÔµ¡­¡­

LZÄ㻹ÓпÉÓ÷Öô£¿

ÒýÓÃ
LZÄ㻹ÓпÉÓ÷Öô£¿
5·Ö

ÒýÓÃ
µÚÒ»¸ö±ÕÔ´£¬µÚ¶þ¸ö¿ªÔ´£¬µÚÈý¸öûŮÈËÔµ¡­¡­

ÓÐÒâ˼¡£¿´±êÌ ......

mssql ĬÈϲÎÊýÔõÑù´¦Àí£¿ - MS-SQL Server / »ù´¡Àà

ÎÒ¶¨ÒåÒ»¸öº¯Êý£¬ÓÐÎå¸ö²ÎÊý
µ«Êµ¼ÊÉÏÎÒµ÷ÓÃʱ²»Ò»¶¨´«Îå¸ö²ÎÊý£¬ÓÐʱֻÐèÒª´«¶þ¸ö²ÎÊý£¬ÓÐʱֻÐèÒª´«Èý¸ö²ÎÊýµÈµÈ
ÕâÖÖ²ÎÊýÔõô¶¨ÒåÄØ£¿
SQL code:
CREATE FUNCTION [ owner_name.] function_name
( [ { ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ