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

SQLÓïÑÔ»ù´¡£¨2£©

from×Ó¾äÖ¸¶¨ÐèÒª½øÐÐÊý¾Ý²éѯµÄ±í£¬ÊÓͼµÈÊý¾ÝÔ´£¬ÓöººÅ·Ö¸ô¡£
from×Ӿ仹¿ÉÒÔÖ¸¶¨Êý¾Ý±í»òÊÓͼ֮¼äµÄÁ¬½ÓÀàÐÍ£¬ÀàÐÍÈ¡¾öÓÚon×Ó¾äÖÐÖ¸¶¨µÄÁ¬½ÓÌõ¼þ¡£
T-SQL¿ÉÒÔÖ§³ÖÔÚfrom×Ó¾äÖÐÖ¸¶¨³ýÊý¾Ý±í»òÊÓͼÍâµÄÆäËû¶ÔÏó¹¹³ÉÅÉÉú±í¡£
ÀýÈ磺select emp.Ô±¹¤±àºÅ£¬emp.Ô±¹¤ÐÕÃû£¬sp.²¿ÃÅÃû³Æ
      from Ô±¹¤Êý¾Ý±í as emp
      (select ²¿ÃÅÊý¾Ý±í.²¿ÃűàºÅ£¬²¿ÃÅÊý¾Ý±í.²¿ÃÅÃû³Æ
       from ²¿ÃÅÊý¾Ý±í
       where ²¿ÃÅÊý¾Ý±í.²¿ÃűàºÅ>2)as sp
      where emp.²¿ÃűàºÅ=sp.²¿ÃűàºÅ£»
¼ìË÷³ö¸ß¼¶²¿ÃÅ£¨²¿ÃűàºÅ´óÓÚ2£©µÄÔ±¹¤¡£
where×Ó¾äÖ¸¶¨Êý¾ÝµÄ¼ìË÷Ìõ¼þ
±È½ÏÔËËã·û£º<,<=,>,>=,=,!=,!<,!>;
·¶Î§ËµÃ÷£ºbetween a and b£¬not between a and b£»
¿ÉÑ¡ÖµÁÐ±í£ºIN£¬NOT IN dept_id in('1001','1002')
ģʽƥÅ䣺like£¬not like
ÊÇ·ñ¿ÕÖµ£ºis null£¬is not null
Ìõ¼þÂß¼­×éºÏ£ºand£¬or£¬not
±È½Ï²éѯÌõ¼þ£ºtext£¬ntextºÍimageÊé¼®ÀàÐͲ»ÄÜÓë±È½ÏÔËËã·û×é³É²éѯÌõ¼þ
Áбí²éѯÌõ¼þ£ºin¹Ø¼ü×Ö´ó¶àÓÃÓÚǶÌײéѯÖУ¬ÎªselectÑ¡¶¨·¶Î§
ģʽƥÅ䣺*Æ¥ÅäÈÎÒâ×Ö·û´®£¬£¿Æ¥ÅäÈÎÒâÒ»¸ö×Ö·û£¬´óСдÃô¸Ð£»%ÓÉ0¸ö»òÈÎÒâ×Ö·û´®£»_±íʾµ¥¸ö×Ö·û£¬Ò»¸öºº×ÖÒªÖ¸¶¨Á½¸ö×Ö·û£»[]ÓÃÓÚÖ¸¶¨·¶Î§[a-f]£¬[^]Ö¸¶¨·¶Î§ÍâµÄ×Ö·û[^a-f];
like'%en%'.....,µ±×Ö·û´®±¾Éí°üÀ¨Í¨Åä·û£¬ÈçSQL_MAIL£¬like‘SQL#_M_IL’ESCAPE‘#’£¨#Ò²¿ÉÒÔ»»³É±ðµÄ·ûºÅ£©»òʹÓÃ[]½«Í¨Åä·ûÖ¸¶¨ÎªÆÕͨ×Ö·û¡£


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

ÂÛ̳Àï¿´µ½µÄÒ»¸öSQLÎÊÌâ¼°½â´ð

ÎÊÌ⣺
ÓÐÒ»¸ö·ÖÊý±í
id classid,score
1  01    120
2  01    128
3  02    98
4  04    134
5  04    78
ÏÖÔÚҪͳ¼Æ ¸÷°àscore >120,ºÍ´óÓÚ90·ÖµÄÈËÊý
´ïµ½ÈçÏÂЧ¹û
classid >120 >90
01  &nb ......

Knowledge Xpert® for PL/SQL ¼ò½é

Knowledge Xpert® for PL/SQL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄ»ùÓÚWindowsµÄ¼¼Êõ×ÊÔ´¿â£¬Ëü¸²¸ÇPL/SQL ¿ª·¢µÄÕû¸öÉúÃüÖÜÆÚ£¬ÉÏǧÖÖרÌâÌṩ±àд¸ßÖÊÁ¿´úÂëËùÐèÒªµÄ±³¾°ÐÅÏ¢¡¢×îºÃµÄ¾­ÑéºÍ³ÌÐò·¶Àý¡£
ÌṩÉÏǧÖÖרÌ⣬¸²¸ÇPL/SQL ±à³ÌµÄÕû¸öÉúÃüÖÜÆÚ£¬´Ó»ù±¾µÄרÌâµ½¸ß¼¶µÄPL/SQL ±àÂë¼¼Êõ¡£
ÓÉ°üÀ¨Mike Ault¡¢Steven Feuerstein¡¢ ......

oralce sqlÓÅ»¯34Ìõ

ÎÒÃÇÒª×öµ½²»µ«»áдSQL,»¹Òª×öµ½Ð´³öÐÔÄÜÓÅÁ¼µÄSQL,ÒÔÏÂΪ±ÊÕßѧϰ¡¢ÕªÂ¼¡¢²¢»ã×ܲ¿·Ö×ÊÁÏÓë´ó¼Ò·ÖÏí£¡
£¨1£©      Ñ¡Ôñ×îÓÐЧÂʵıíÃû˳Ðò(Ö»ÔÚ»ùÓÚ¹æÔòµÄÓÅ»¯Æ÷ÖÐÓÐЧ)£º
ORACLE µÄ½âÎöÆ÷°´ÕÕ´ÓÓÒµ½×óµÄ˳Ðò´¦Àífrom×Ó¾äÖеıíÃû£¬from×Ó¾äÖÐдÔÚ×îºóµÄ±í(»ù´¡±í driving table)½«±»×îÏÈ´¦Àí£¬ÔÚfrom× ......

ÈÃÈË·¢¿ñµÄsqlÓï¾ä£¡

StringBuilder Asql = new StringBuilder();
            Asql.Append(" select '' as 'ÐòºÅ', T_Station.µµ°¸ºÅ,T_Station.StationName as '̨վÃû' , ");
            Asql.Append("  ÇøÕ¾ºÅ.ÇøÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ