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

Sql°æ±¾³ýÈ¥html²¢½ØÈ¡Ö¸¶¨³¤¶ÈµÄ×Ö·û´®

set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
Go
----½ØÈ¡×Ö·û´®£¬²¢³öÈ¥html
create FUNCTION [dbo].[CutString] (@str varchar(1000),@length int) 
RETURNS varchar(1000) AS 
BEGIN
 declare @mainstr varchar(1000)
 declare @substr varchar(1000)
 if(@str is not null or @str!='')
 begin
  set @mainstr=dbo.regexReplace(@str,'<[\w\W]*?>','',1,1)
  set @mainstr=dbo.regexReplace(@mainstr,'&[\w\W]*?;','',1,1)
  if len(@mainstr)<=@length
     set @substr=@mainstr
  else
     set @substr=substring(@mainstr,1,@length-2)+'..'
 end
 return @substr
END


Ïà¹ØÎĵµ£º

Êý¾Ý¿â»ù±¾ SQLÓï¾ä´óÈ«

ѧ»áÊý¾Ý¿âÊǺÜʵÓÃD~~¼Ç¼һЩ³£ÓõÄsqlÓï¾ä...ÓÐÈëÃÅÓÐÌá¸ßÓмû¶¼Ã»¼û¹ýµÄ...ºÃÈ«...ÊÕ²ØÏÂ...
Æäʵһ°ãÓõľÍÊDzéѯ,²åÈë,ɾ³ýµÈÓï¾ä¶øÒÑ....µ«Ñ§Ñ§´æ´¢¹ý³ÌÊǺÃÊÂ...ÒÔºóÊý¾Ý·½ÃæµÄ¶«Î÷¾Í²»ÓÃÔÚ³ÌÐòÀï¸ãà¶..¶øÇÒ³ÌÐòÓëÊý¾Ý¿âÖ»ÒªÒ»¸öÀ´»ØͨѶ¾Í¿ÉÒԸ㶨ËùÓÐÊý¾ÝµÄ²Ù×÷....
Ò»¡¢»ù´¡
1¡¢ËµÃ÷£º´´½¨Êý¾Ý¿â
Create DAT ......

MS SQL 2005Á´½Ó·þÎñÆ÷Á¬½ÓÔ¶³ÌORACLEÈ«¹ý³Ì

µÚÒ»²½:ÏÂÔØ°²×°Oracle 10g Release 2 ¿Í»§¶ËÈí¼þ,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/nt/oracle10g/10201/10201_database_win32.zip
ÏÂÔغó°²×°
 
 
 
µÚ¶þ²½:ÏÂÔØ°²×°Oracle ODAC,ÏÂÔØÁ¬½ÓÊÇ:
http://download.oracle.com/otn/other/ole-oo4o/ODAC1020221.exe
 
µÚÈý²½: ÖØÆôMS SQ ......

sql group by Óë havingµÄÓ÷¨

1. GROUP BY ÊÇ·Ö×é²éѯ, Ò»°ã GROUP BY ÊǺ;ۺϺ¯ÊýÅäºÏʹÓÃ
group by ÓÐÒ»¸öÔ­Ôò,¾ÍÊÇ select ºóÃæµÄËùÓÐÁÐÖÐ,ûÓÐʹÓþۺϺ¯ÊýµÄÁÐ,±ØÐë³öÏÖÔÚ group by ºóÃ棨ÖØÒª£©
ÀýÈç,ÓÐÈçÏÂÊý¾Ý¿â±í£º
A    B
1    abc
1    bcd
1    asdfg
 Èç¹ûÓÐÈ ......

HTML±êÇ© optgroup ¡¾select ʹÓá¿


ѧÎÞÖ¹¾³£¡£¡£¡
 
½ñÌìÔÚÂÛ̳»Ø´ðÌû×Ó£¬Ñ§µ½ÁËÒ»ÕУ¬selectÔ­À´¿ÉÒÔʹÓÃoptgroup ±êÇ©£¬¶Ôoption½øÐзÖÀ࣡
 
ÌØÒâ´ÓÍøÉÏժ¼ÁËÏÂÃæµÄÎÄÕÂ...
ÔÚ htmlÀï,optgroupÕâ¸öÔªËضÔÓÚÎÒÀ´ËµºÜÉÙÓõ½¡£×î½üÔÚ¹«Ë¾×öÏîĿʱʹÓÃÁËһϣ¬¸Ð¾õ²»´í£¬¿ÉÒÔ¶ÔÊý¾Ý½øÐзÖÀà¡£µ«ÔÚʹÓÃJavaScript Ìí¼Óoptgroupʱ,ÔÚIEÓëFire ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ