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

mysql substring

µÃ°²ÆæרÂô£¨Ô˶¯ÐÝÏÐЬ£¬°åЬ£©ÌÔ±¦Ð¡µê£ºwww.bxbshoes.com
substring£º
Óï·¨
SUBSTRING ( expression , start , length )   
²ÎÊý
expression     
ÊÇ×Ö·û´®¡¢¶þ½øÖÆ×Ö·û´®¡¢text¡¢image¡¢Áлò°üº¬Áеıí´ïʽ¡£²»ÒªÊ¹Óðüº¬¾ÛºÏº¯ÊýµÄ±í´ïʽ¡£  
start
ÊÇÒ»¸öÕûÊý£¬Ö¸¶¨×Ó´®µÄ¿ªÊ¼Î»Öá£
  
length
  
ÊÇÒ»¸öÕûÊý£¬Ö¸¶¨×Ó´®µÄ³¤¶È£¨Òª·µ»ØµÄ×Ö·ûÊý»ò×Ö½ÚÊý£©¡£     
˵Ã÷  ÓÉÓÚÔÚ text Êý¾ÝÉÏʹÓàSUBSTRING Ê± start ºÍ length Ö¸¶¨×Ö½ÚÊý£¬Òò´Ë DBCS Êý¾Ý£¨ÈçÈÕ±¾ºº×Ö£©¿ÉÄܵ¼ÖÂÔÚ½á¹ûµÄ¿ªÊ¼»ò½áÊøλÖòð·Ö×Ö·û¡£´ËÐÐΪÓë READTEXT ´¦Àí DBCS µÄ·½Ê½Ò»Ö¡£È»¶ø£¬ÓÉÓÚż¶ø»á³öÏÖÆæ¹ÖµÄ½á¹û£¬½¨Òé¶Ô DBCS ×Ö·ûʹÓàntext ¶ø·Ç text¡£   
·µ»ØÀàÐÍ
Èç¹û expression ÊÇÖ§³ÖµÄ×Ö·ûÊý¾ÝÀàÐÍ£¬Ôò·µ»Ø×Ö·ûÊý¾Ý¡£Èç¹û expression ÊÇÖ§³ÖµÄ binary Êý¾ÝÀàÐÍ£¬Ôò·µ»Ø¶þ½øÖÆÊý¾Ý¡£   
·µ»Ø×Ö·û´®µÄÀàÐÍÓë¸ø¶¨±í´ïʽµÄÀàÐÍÏàͬ£¨±íÖÐÏÔʾµÄ³ýÍ⣩¡£      
¸ø¶¨µÄ±í´ïʽ·µ»ØÀàÐÍ
text
varchar
image
varbinary
ntext
nvarchar
×¢ÊÍ
ÔÚ×Ö·ûÊýÖбØÐëÖ¸¶¨Ê¹Óàntext¡¢char »ò varchar Êý¾ÝÀàÐ͵ÄÆ«ÒÆÁ¿£¨start ºÍ length£©¡£ÔÚ×Ö½ÚÊýÖбØÐëÖ¸¶¨Ê¹Óàtext¡¢image¡¢binary »ò varbinary Êý¾ÝÀàÐ͵ÄÆ«ÒÆÁ¿¡£     
˵Ã÷  ¼æÈݼ¶±ð¿ÉÄÜÓ°Ïì·µ»ØÖµ¡£ÓйؼæÈݼ¶±ðµÄ¸ü¶àÐÅÏ¢£¬Çë²Î¼û sp_dbcmptlevel¡£  
ʾÀý 
A. ÔÚ×Ö·û´®ÉÏʹÓàSUBSTRING     
ÏÂÀýÏÔʾÈçºÎÖ»·µ»Ø×Ö·û´®µÄÒ»²¿·Ö¡£¸Ã²éѯÔÚÒ»ÁÐÖзµ»Ø authors ±íÖеÄÐÕÊÏ£¬ÔÚÁíÒ»ÁÐÖзµ»Ø authors ±íÖеÄÃû×ÖÊ××Öĸ¡£
USE pubs
    SELECT au_lname, SUBSTRING(au_fname, 1, 1)
    from authors
    ORDER BY au_lname
ÏÂÃæÊǽá¹û¼¯£º
au_lname &nb


Ïà¹ØÎĵµ£º

mysql Ëæ»ú»ñÈ¡¼Ç¼ order by rand ÓÅ»¯

Èç¹ûÒªËæ»ú»ñÈ¡¼Ç¼Êý£¬ÔÚmysqlÀï×î¼òµ¥µÄ·½·¨¿Ï¶¨ÊÇorder
by
rand
()ÁË£¬µ«ÊÇÕâÖÖ·½·¨Ö»ÄÜÔÚ±í¼Ç¼¼«ÉÙµÄÇé¿öϲÅÄÜʹÓá£Ö÷ÒªÊÇÒòΪorder
by
rand
()µ¼ÖÂÁËusing filesort.Õâ¸öʱºò²éѯÀàÐÍ»á±ä³Éall£¬Ë÷Òý»áʧЧ¡£Ö»Ðè¼òµ¥µÄ±äͨÏ£¬Íê³É¿ÉÒÔ×öµ½Í¬ÑùµÄЧ¹û¡£
¸ù¾Ý¼Ç¼µÄÀàÐÍ£¬·ÖÀàÁ¬ÐøºÍ·ÇÁ¬ÐøÁ½ÖÖ¡£
Á¬ÐøÖ ......

mysql 5.1ʼþµ÷¶ÈÆ÷²âÊÔ

Î塢ʼþµ÷¶ÈÆ÷²âÊÔ
5.1¡¢²âÊÔÄ¿µÄ
5.1.1  ÅäÖ÷½·¨
5.1.2  ÊÇ·ñÕý³£¹¤×÷
5.1.3  ÈÕ³£µÄά»¤
5.2¡¢Ê¼þµ÷¶ÈÆ÷½éÉÜ
×ÔMySQL5.1.6Æð£¬Ôö¼ÓÁËÒ»¸ö·Ç³£ÓÐÌØÉ«µÄ¹¦ÄÜ
–ʼþµ÷¶ÈÆ÷(Event Scheduler)£¬¿ÉÒÔÓÃ×ö¶¨Ê±Ö´ÐÐijЩÌض¨ÈÎÎñ£¨ÀýÈ磺ɾ³ý
¼Ç¼¡¢¶ÔÊý¾Ý
½øÐлã×ܵȵȣ©£¬À´È¡´ ......

mysqlÖÐint¡¢bigint¡¢smallint ºÍ tinyintµÄÇø±ð


ʹÓÃÕûÊýÊý¾ÝµÄ¾«È·Êý×ÖÊý¾ÝÀàÐÍ¡£
bigint
´Ó -2^63 (-9223372036854775808) µ½ 2^63-1 (9223372036854775807) µÄÕûÐÍÊý¾Ý£¨ËùÓÐÊý×Ö£©¡£´æ´¢´óСΪ 8 ¸ö×Ö½Ú¡£
int
´Ó -2^31 (-2,147,483,648) µ½ 2^31 - 1 (2,147,483,647) µÄÕûÐÍÊý¾Ý£¨ËùÓÐÊý×Ö£©¡£´æ´¢´óСΪ 4 ¸ö×Ö½Ú¡£int µÄ SQL-92 ͬÒå×ÖΪ integer¡£
smallin ......

MySQL´æ´¢ÒýÇæÑ¡ÔñInnoDB»¹ÊÇMyISAM

´æ´¢ÒýÇæÊÇʲô
MySQLÖеÄÊý¾ÝÓø÷ÖÖ²»Í¬µÄ¼¼Êõ´æ´¢ÔÚÎļþ(»òÕßÄÚ´æ)ÖС£ÕâЩ¼¼ÊõÖеÄÿһÖÖ¼¼Êõ¶¼Ê¹Óò»Í¬µÄ´æ´¢»úÖÆ¡¢Ë÷Òý¼¼ÇÉ¡¢Ëø¶¨Ë®Æ½²¢ÇÒ×îÖÕÌṩ¹ã·ºµÄ²»Í¬µÄ¹¦ÄܺÍÄÜÁ¦¡£Í¨¹ýÑ¡Ôñ²»Í¬µÄ¼¼Êõ£¬ÄãÄܹ»»ñµÃ¶îÍâµÄËٶȻòÕß¹¦ÄÜ£¬´Ó¶ø¸ÄÉÆÄãµÄÓ¦ÓõÄÕûÌ幦ÄÜ¡£
ÀýÈ磬Èç¹ûÄãÔÚÑо¿´óÁ¿µÄÁÙʱÊý¾Ý£¬ÄãÒ²ÐíÐèҪʹÓÃÄÚ´æ ......

MySQL 1067´íÎó½â¾ö·½·¨¼¯ºÏ

1
°²×°MYSQLºó¸ü¸ÄÁËROOTµÄÃÜÂëºóÓÃ
net startmysql
Æô¶¯Ê±ÎÒ¾ÍÓöµ½ÁËÕâÑùµÄÎÊÌ⣮ʹÓÃÒÔÏÂÃüÁîºó
c:\mysql\bin\mysqladmin-u root -p shutdown
ÔÙnet start mysql¾ÍûÓÐÕâ¸ö´íÎóÌáʾÁË!
*************
2
MySQLµÄ1067´íÎó
Q£ºÎÒµÄMysqlÅöµ½ÁË 1067 ´íÎó
´íÎóÐÅϢΪ£º
A system error has occurred. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ