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

ÇóÖú£¬SQLÖÐͨÅä·û - MS-SQL Server / ÒÉÄÑÎÊÌâ

SQL code:
ÏÖÓÐÒÔ×Ö·û´®ÈçÏ£º×Ö¶ÎDescription ÖÐÒ»Ìõ¼Ç¼Ϊ'RESISTOR-MELF*MF-1OHM*1%*1.5MMX3.6MM-0204'
ÎÒÏë´ÓÖвéÕҹؼü×Ö Declare @Keyword
µ±@Keyword='1OHM'
ÎÒÓÃÈçÏÂÆ¥ÅäDescription not like '%[*-]'+@Keyword+'[*-]%'
µ±@Keyword='RESISTOR-MELF*MF-1OHM*1%*1.5MMX3.6MM-0204'
ÎÒÓÃDescription not like '%'+@Keyword+'%'
ÎÒÄܲ»Äܽ«ÒÔÉÏÁ½¸ö²éѯÈںϵ½Ò»¸öÓï¾äÖУ¬ÇóÖú¸÷λ´ó´óÃÇ

ÎÒÏÖÔÚÏëµ½µÄÊÇÔÚDescription not like '%[*-]'+@Keyword+'[*-]%'Öн«[*-]ÖмÓÉÏ´ú±í¿ÕµÄ×Ö·û£¬µ«ÊÇÎÒ²»ÖªµÀ¸ÃÔõôд£¬Çó½Ì°¡~


ô¶®
À´µãÊý¾Ý¿´¿´


ÄѶȺÃÏñºÜ¸ß

ÒýÓÃ
ô¶®
À´µãÊý¾Ý¿´¿´


...

SQL code:

select *
from tbl
where (@Keyword='1OHM' and Description not like '%[*-]'+@Keyword+'[*-]%')
or (@Keyword='RESISTOR-MELF*MF-1OHM*1%*1.5MMX3.6MM-0204' and Description not like '%'+@Keyword+'%')




ÒýÓÃ

SQL code

select *
from tbl
where (@Keyword='1OHM' and Description not like '%[*-]'+@Keyword+'[*-]%')
or (@Keyword='RESISTOR-MELF*MF-1OHM*1%*1.5MMX3.6MM-0204' and Description not like '%'+@Keyword+¡­¡­

ÎÊÌâÎÒ×Ô¼º½â¾öÁË
SQL code



Code highlighting produced by Actipro Co


Ïà¹ØÎÊ´ð£º

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

Asp+sql serverÎÊÌâ - Web ¿ª·¢ / ASP

ÎÒÒ»¸öÏîÄ¿£¬Óиö²åÈë²Ù×÷£¬¾ßÌåÊÇÕâÑùµÄ£º
ÎÒÓнø»õÐÅÏ¢±í¡£ÔÚ³ö»õʱѡÔñÏàÓ¦µÄ½ø»õÐÅÏ¢£¬ÊäÈëÊýÁ¿£¬Ñ¡Ôñ²¿Ãź󣬵㱣´æ°´Å¥£¬ÓÉÓÚÍøÂçÑÓʱ£¬µãÒ»ÏÂûÓз´Ó³£¬ÓÚÊÇÓû§¾ÍÓÖµãһϣ¬µ¼ÖÂÒ»´Î²åÈëÁËÁ½Ìõ¼Ç¼:
Àý£º ......

Çë½ÌsqlÓï¾ä¡£ - Oracle / ¿ª·¢

ÎÒÓÐÒ»¸ö±í£¬½á¹¹ÊÇÕâÑù¡£
  ת³ö µ¥Î» תÈ뵥λ ±ÊÊý ½ð¶î
date(Ö÷) outid(Ö÷) inid(Ö÷) num amt
2009 1 2 1 500 Ϊ 1 µ¥Î» ÔÚ2009Ä ......

SQLÈçºÎÓÅ»¯ÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

½ñÌì×öÁËÒ»¸ö´æ´¢¹ý³Ì   »·¾³ÊÇSQL2000Êý¾Ý¿â  
´óÖÂÈçÏÂ
½¨Á¢ÁÙʱ±í
¶¨ÒåÔ±¹¤Óαê
        Ñ­»·Ô±¹¤£¨ÊôÓÚ1¸ö¹«Ë¾)  
        ......

ASPÁ´½ÓSQLµÄ¼òµ¥µÇ½½çÃæ - .NET¼¼Êõ / ASP.NET

protected void btnLogin_Click(object sender, EventArgs e)
  {
  SqlConnection conn = new SqlConnection("Server = (local);user id = sa;pwd = 1;database = Login");
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ