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

sql²éѯÓï¾ä - MS-SQL Server / »ù´¡Àà

Àý×Ó07011
  07012
  07013
  07014
  08011
  08012
ͨ¹ýÊäÈë07¾ÍÄÜÏÔʾ°üº¬07Êý¾Ý£¡070Ò²ÄÜÏÔʾ°üº¬070Êý¾Ý
ͨ¹ýÊäÈë08¾ÍÄÜÏÔʾ°üº¬07Êý¾Ý£¡080Ò²ÄÜÏÔʾ°üº¬080Êý¾Ý
ÔõôʵÏÖ...
ÉÏÃæÊÇÀý×ÓÇë¸ø¸ö¹ã·º¿ÉÓõÄÓï¾ä£¡Ð»Ð»£¡

SQL code:
select * from tb where col like '070%'


SQL code:
select * from tb where col like '%07%'
select * from tb where col like '%08%'


Ä£ºý²éѯ°¡£¡
select * from Tab where FieldName like'%07%'

ÄãÕâ¸öÊdzÌÐòÉè¼ÆµÄÎÊÌâ°É


SQL code:
select * from tb where col like '070%' --ǰ°üº¬070 £¨½ö°üº¬×Ö·ûµÄǰÈý¸öΪ070£©

select * from tb where col like '%070%' --È«°üº¬070 (ÈκÎλÖóöÏÖ070¶¼°üº¬£©


08ÄØ£¿²»ÄÜÒ»¸öÒ»¸öÌí¼Ó´úÂë°É...Óй㷺µÄÀý×Óû£¿

ÒýÓÃ

08ÄØ£¿²»ÄÜÒ»¸öÒ»¸öÌí¼Ó´úÂë°É...Óй㷺µÄÀý×Óû£¿

ÄǾÍÉêÃ÷Ò»¸ö²ÎÊý£¡£¡´«²Î£¡

Â¥ÉϵÄÄܸøÏÂÀý×ÓÂð...ÐÂÊÖ...


´´½¨´æ´¢¹ý³Ì¶¯Ì¬µ÷ÓÃ
Create proc GetStr
@Tmp varchar(50)
as 
begin
  select * from tb where col like '%'+@Tm


Ïà¹ØÎÊ´ð£º

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



type Exception report


message

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

exception

org.apache.jas ......

sqlÓÅ»¯ - Oracle / »ù´¡ºÍ¹ÜÀí

select count(1) from FX_RETURNBOOKCHECKLIST fxreturnbo0_ where fxreturnbo0_.BOOKID='164 ' AND fxreturnbo0_.RETURNID='00025.S0000001' 
ÉÏÃæÒ»¸ö¼òµ¥µÄSQL,Ö´ÐÐʱ¼ä2.6à ......

MS SQL×÷ÒµÎÊÌâ - MS-SQL Server / Ó¦ÓÃʵÀý

ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬
»òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡
ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡
֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡
°ïUP

²Î¿¼:http://hi.baidu.com/toiota ......

ÇóÒ»¸öSQLÓï¾ä - MS-SQL Server / »ù´¡Àà

×Ö¶Î1,×Ö¶Î2.....×Ö¶ÎN,Status,ParentID
1,Name1....test1,1,99
1,Name1....test1,3,99
1,Name2....test2,1,101
1,Name2....test2,3,101
1,Name3....test3,2,101
1,Name1....test1,4,101
ÏëÒªµÄ½á¹ûÊÇ:
1,Na ......

SqlÓï¾ä³ö´í£¬ - Web ¿ª·¢ / ASP

ÔËÐк󱨴íÎóÈçÏ£º
´íÎóÀàÐÍ£º
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'Êýѧ + 4where ÐÕÃû='Íõ¾²'' ÖС£
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ