PL/SQL±¨ÎÞЧµÄ´°¿Ú¾ä±úµÄ½â¾ö°ì·¨
ÎÒÔÚʹÓÃPL/SQLʱ£¬µã»÷ij¸ö×Ö¶ÎÅԱߵÄС°´Å¥Ï£Íûµ¯³ö±à¼´°¿Úʱ£¬PL/SQLÌáʾ“ÎÞЧµÄ´°¿Ú¾ä±ú”¡£Ò»Ö±²»Ã÷°×ÊÇÔõô»ØÊ£¬ºóÀ´baiduÁËÏ£¬²ÅÖªµÀÕâ¸ö¹¦ÄܺÍwindowsµÄprint spooler·þÎñÓйء£Æô¶¯¸Ã·þÎñ¾Í¿ÉÒÔÁË¡£
Ïà¹ØÎĵµ£º
ϵͳ»·¾³£ºWindows 7
Èí¼þ»·¾³£ºVisual C++ 2008 SP1 +SQL Server 2005
±¾´ÎÄ¿µÄ£º±àдһ¸öº½¿Õ¹ÜÀíϵͳ
ÕâÊÇÊý¾Ý¿â¿Î³ÌÉè¼ÆµÄ³É¹û£¬ËäÈ»³É¼¨²»¼Ñ£¬µ«ÊÇ×÷ΪÎÒÓÃVC++ ÒÔÀ´±àдµÄ×î´ó³ÌÐò»¹ÊÇ´«µ½ÍøÉÏ£¬ÒÔ¹©²Î¿¼¡£ÓÃVC++ ×öÊý¾Ý¿âÉè¼Æ²¢²»ÈÝÒ×£¬µ«Ò²²»ÊDz»¿ÉÄÜ¡£ÒÔÏÂÊÇÎҵijÌÐò½çÃ棬ºóÃæ ......
Declare @T Table(
CFF_Loanno nvarchar(100),
BANK_Name_2 nvarchar(100),
CFF_code nvarchar(100),
CFF_date datetime,
CFF_amt decimal(18, 6),
......
FileStream:ÎļþÁ÷,ΪÁ˽â¾ö´ó¶ÔÏóBLOB(Binary Large Objects)µÄ´æ´¢ÎÊÌâ.¶ÔÓÚ´ó¶ÔÏó´æ´¢,²¢ÇÒ²»ÊÜ2GBµÄÏÞÖÆ.
ÒÔÍùÓÐÁ½ÖÖ·½Ê½:
(1)´æ´¢ÔÚÊý¾Ý¿âÀïÃæ,ÕâÖÖ·½Ê½Ò»°ãʹÓÃimage×Ö¶Î,»òÕßvarbinary(max)À´×ö,ºÃ´¦ÊÇ¿ÉÒÔͳһ±¸·Ý,µ«Êµ¼ÊЧÂʽϵÍ;
(2)´æ´¢ÔÚÎļþϵͳ,¶øÊý¾Ý¿âÖд洢Îļþ·¾¶,ÕâÖÖ·½Ê½Êý¾Ý¿âѹÁ¦¼õÇáÁË,µ«È´²»·½ ......
DUMP TRANSACTION testdb WITH NO_LOG
BACKUP LOG testdb WITH NO_LOG
DBCC SHRINKDATABASE(testdb ......
truncate ¡¢deleteÓëdropÇø±ð
Ïàͬµã£º
truncate ºÍ²»´ø where ×Ó¾äµÄ delete£¬ÒÔ¼° drop ¶¼»áɾ³ý±íÄÚµÄÊý¾Ý
²»Í¬µã£º
1. truncate ºÍ delete ֻɾ³ýÊý¾Ý²»É¾³ý±íµÄ½á¹¹(¶¨Òå)
drop Óï¾ä½«É¾³ý±íµÄ½á¹¹±»ÒÀÀµµÄÔ¼Êø(constrain)¡¢´¥·¢Æ÷(trigger)¡¢Ë÷Òý(index)£»ÒÀÀµÓڸñíµÄ´æ´¢¹ý³Ì/º¯Êý½«±£Áô,µ«ÊDZäΪ invalid ×´Ì ......