|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
为了在某种程序上弥补这一缺陷,许多SQL命令都有一个DELAY_KEY_WRITE项。这个选项的作用是暂时制止MySQL在该命令每插入一条新记录和每修改一条现有之后立刻对索引进行刷新,对索引的刷新将等到全部记录插入/修改完毕之后再进行。server
Author:DavidEuler
Date:2004/11/17
Email:de_euler-david@yahoo.com.cn
有任何成绩,请与我接洽:)
SQLServerBooksOnline下面搜刮like,找到了包括%,_,[],[^]几个通配符。
如:select*frommybbswhereContentlike[w]%
like关头字用于搜刮婚配某个形式的字符串,大概日期,工夫值。
SQLServerBooks中的部分化释以下:
PatternMatchinginSearchConditions
TheLIKEkeywordusesaregularexpressiontocontainthepatternthatthevaluesarematchedagainst.Thepatterncontainsthecharacterstringtosearchfor,whichcancontainanycombinationoffourwildcards.
WildcardMeaning%Anystringofzeroormorecharacters._Anysinglecharacter.[]Anysinglecharacterwithinthespecifiedrange(forexample,[a-f])orset(forexample,[abcdef]).[^]Anysinglecharacternotwithinthespecifiedrange(forexample,[^a-f])orset(forexample,[^abcdef]).
Enclosethewildcard(s)andthecharacterstringinsinglequotationmarks,forexample:LIKE%en%searchesforallstringsthatcontainthelettersenanywhereinthestring(Bennet,Green,McBadden).
LIKE_herylsearchesforallsix-letternamesendingwiththelettersheryl(Cheryl,Sheryl).
LIKE[CK]ars[eo]nsearchesforCarsen,Karsen,Carson,andKarson(Carson).
LIKE[M-Z]ingersearchesforallnamesendingwiththelettersingerthatbeginwithanysingleletterfromMthroughZ(Ringer).
LIKEM[^c]%searchesforallnamesbeginningwiththeletterMthatdonothavethelettercasthesecondletter(MacFeather).
Thisqueryfindsallphonenumbersintheauthorstablethathaveareacode415:
SELECTphoneFROMpubs.dbo.authorsWHEREphoneLIKE415%
mysql的原来开发者又开发了MariaDB,MariaDB适合用来替代mysql吗 |
|