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

¹æ»®ÔºÅàѵ·ÑÓÃͳ¼Æ²éѯµÄsqlÓï¾ä

create or replace view pxfy_view as
select t1.form_id,t1.reserve as mid,t1.feiyong,t.cjpxr_name as full_name,1 as pxlx,t1.topic,t1.identity,
     t1.begin_time as CREATEDATE,t1.end_time as completedate,pv.city,pv.DEPT_ID
     from wf_oa_pxnb_cjry t,WF_OA_PXNB t1,person_view pv where t.form_id=t1.form_id and t.cjpxr=pv.ACCOUNT
     union all
    select t1.form_id,t1.reserve as mid,t1.feiyong,t.cjr_name as full_name,0 as pxlx,t1.topic,t1.identity,
    t1.begin_time as CREATEDATE,t1.end_time as completedate,pv.city,pv.DEPT_ID
     from wf_oa_px_pxjl t,WF_OA_PX t1,person_view pv where t.form_id=t1.form_id and t.cjr=pv.ACCOUNT


Ïà¹ØÎĵµ£º

¿ÉΪNULL µ«²»ÄÜÖØ¸´µÄSQLÔ¼Êø


SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER   trigger   [dbo].[checkExamNo] on   [dbo].[student]
  for   insert,update    as  
  if   exists(select   examNo from   student whe ......

SQL´¥·¢Æ÷Óï·¨²Î¿¼

ת×Ôhttp://www.tzwhx.com/newOperate/Html/3/31/311/16609.html
Óï·¨
CREATE TRIGGER trigger_name
ON { table | view }
[ WITH ENCRYPTION ]
{
    { { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [ UPDATE ] }
        [ WITH APPEND ]
   ......

SQL Server 2005 Express Edition Óû§ÊµÀý

Roger Wolter
ÊÊÓÃÓÚ£º
SQL Server 2005 Express Edition
ÕªÒª£º±¾ÎĽéÉÜ SQL Server 2005 Express Edition ÖеÄÓû§ÊµÀý£¬ÒÔ¼°ÈçºÎʹÓÃËüÃÇÀ´¼ò»¯Ïò Visual Studio ÏîÄ¿Ìí¼ÓÊý¾Ý¿â¹¦ÄܵIJÙ×÷¡£
Äú¿ÉÒÔÏÂÔØ±¾ÎÄʹÓÃµÄ Microsoft Word °æ±¾¡£
±¾Ò³ÄÚÈÝ
¼ò½é
¸½¼ÓÊý¾Ý¿âÎļþ
AttachDBFilename
Óû§ÊµÀý
´ò¿ªÓ ......

SQL Server ÁÙʱ±íµÄɾ³ý

ÁÙʱ±íÓëÒ»°ãµÄ±í²»Í¬£¬ËüÊDZ£´æµ½tempDb±íÖС£ÁÙʱ±íµÄ±íÃûÓëÄãËù½¨µÄ±íÃûÒ²²»Ò»Ñù£¬ÒòΪËûҪΪ²»Í¬È˵ÄÏàͬ²Ù×÷´´½¨²»Í¬µÄÁÙʱ±í¡£
1¡¢´íÎóµÄɾ³ý²Ù×÷£º
--´íÎóµÄÁÙʱ±íɾ³ý²Ù×÷£¬ÒòΪËùÔÚÊý¾Ý¿â²»Í¬
IF  EXISTS (SELECT * from sysobjects WHERE object_id = OBJE ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ