sqlÓï¾ä´íÎó - MS-SQL Server / »ù´¡Àà
select * from dbo.[Report] where ID like %1% or Report_num like %1% or ID like %ehs% or Report_num like %ehs% order by ID £»
ÏûÏ¢ 102£¬¼¶±ð 15£¬×´Ì¬ 1£¬µÚ 1 ÐÐ
'1' ¸½½üÓÐÓï·¨´íÎó¡£
select * from dbo.[Report] where ID like '%1% 'or Report_num like '%1% 'or ID like '%ehs% 'or Report_num like' %ehs%' order by ID
like '%1%'
'%1%'
ºóÃæµÄÄÇЩÌõ¼þÒ²¶¼Òª¼ÓÉÏÒýºÅ
...Êý¾Ý¿âÀïµÄ×Ö·û´®Òª¼ÓÒýºÅµÄѽ£¡
SQL code:
select *
from dbo.[Report]
where ID like '%1% 'or Report_num like '%1%'
or ID like '%ehs%' or Report_num like '%ehs%'
order by ID
SQL code:
select *
from dbo.[Report]
where ID like '%1%' or Report_num like '%1%'
or ID like '%ehs%' or Report_num like '%ehs%'
order by ID
LIKEºóÃæ¼ÓÒýºÅ£¬Í¬Ê±×¢ÒâÒýºÅÄÚ²»ÄÜÓпոñ£¬³ý·ÇÌØÊâÐèÒª¡£
¼ÓÉÏ''
Õâ¸öµ¥ÒýºÅÎÒºóÀ´×Ô¼ºÒ²ÕÒ³öÀ´ÁË£¬µ«ÏÖÔÚÊÇÎÒµÄÓï¾äÔÚÊý¾Ý¿âÀï¿ÉÒÔÔËÐУ¬ÔÚC#±àÒëÆ÷Àï¾Í²»ÐÐÁË¡£ÏêϸÓï¾ä¼ûÏ£º
select * from dbo.[Report] where ID like '%1%' or Report_num like '%1%' or ID like '%ehs%' or Report_num like '%ehs%' order by ID ;
ÔÚÊý¾Ý¿âûÎÊÌâ¡£ÔÚvs2005À´úÂëÈçÏ£º
C# code
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www
Ïà¹ØÎÊ´ð£º
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......
ÈçºÎÔÚSQL2005ÖÐÉ趨¶¨Ê±×÷Òµ£¬±ÈÈç˵¶¨Ê±ÇåÀíijЩ±íµÄÊý¾Ý£¬
»òÕßÊǶ¨Ê±µÄ½«Ä³Ð©±íµÄÊý¾Ýµ¼³öexcel£¡
ÔÚÏߵȴý£¬¼±¼±¼±£¬×îºÃÊÇÏêϸ²½Ö裡
֮ǰÎÒ×öµÄ×÷ÒµÓеãÎÊÌ⣡
°ïUP
²Î¿¼:http://hi.baidu.com/toiota ......
ÐèÇóÈçÏ£º
ѧԺ academy£¨aid,aname£©
°à¼¶ class£¨cid,cname,aid£©
ѧÉú stu(sid,sname,aid,cid)
סËÞÇø region(rid,rname)
ËÞÉáÂ¥ build(bid,rid,bnote) bnoteÊÇ¡®ÄС¯/¡®Å®¡¯
ËÞÉá dorm(did,rid,bid£¬bedn ......
ÕâÀïÏëÁ˽âÏ£¬¹ØÓÚSQL ServerÖзÖÒ³ºÍOracleÖзÖÒ³£»
ƽ³£Ð´Ó¦ÓóÌÐòµÄʱºò£¬±ÈÈçÓõÄÓïÑÔÊÇJava£¬ÓиöÁбíÒ³Ãæ£¬ÐèÒª¶ÔÊý¾Ý·ÖÒ³ÏÔʾ£»
ÕâÀïÒª·ÖÒ³ÄѵÀ²»ÐèÒª½èÖúJava£¬¶øÖ±½ÓsqlÄÜÖªµÀ·ÖÒ³Âð£¬ÆðÂëÒ²Òª´«¸öÒ³Âë½ ......