×ðÁú¿­Ê±¹ÙÍøµÇ¼

mysqlÖг£¼ûµÄÊý¾ÝÀàÐÍÓÐÄÄЩ?

mysql Ìṩ¶àÖÖÊý¾ÝÀàÐÍÀ´´æ´¢²î±ðÀàÐ͵ÄÊý¾Ý £¬°üÀ¨ÕûÊýÀàÐÍ¡¢¸¡µãÊýÀàÐÍ¡¢¶¨µãÀàÐÍ¡¢×Ö·ûÀàÐÍ¡¢Ê±¼äºÍÈÕÆÚÀàÐÍÒÔ¼°ÆäËûÀàÐÍ¡£ÕâЩÊý¾ÝÀàÐ;ßÓвî±ðµÄÌØÕ÷ºÍÓÃ; £¬ÓÃÓÚÖª×ã²î±ðÊý¾ÝµÄ´æ´¢ÐèÇó¡£

MySQL Öг£¼ûµÄÊý¾ÝÀàÐÍ

MySQL Ìṩ¶àÖÖÊý¾ÝÀàÐÍÀ´´æ´¢²î±ðµÄÊý¾Ý £¬Ã¿ÖÖÀàÐͶ¼ÓÐÆäÆæÒìµÄÌØÕ÷ºÍÓÃ;¡£ÒÔÏÂÊÇһЩ×î³£ÓõÄÊý¾ÝÀàÐÍ£º

ÕûÊýÀàÐÍ

TINYINT: 8 λÎÞ·ûºÅÕûÊý £¬¹æÄ£´Ó 0 µ½ 255

SMALLINT: 16 λÎÞ·ûºÅÕûÊý £¬¹æÄ£´Ó 0 µ½ 65535

MEDIUMINT: 24 λÎÞ·ûºÅÕûÊý £¬¹æÄ£´Ó 0 µ½ 16777215

INT: 32 λÎÞ·ûºÅÕûÊý £¬¹æÄ£´Ó 0 µ½ 4294967295

BIGINT: 64 λÎÞ·ûºÅÕûÊý £¬¹æÄ£´Ó 0 µ½ 18446744073709551615

¸¡µãÊýÀàÐÍ

FLOAT: 32 λ¸¡µãÊý £¬¹æģԼΪ -3.4e38 µ½ 3.4e38

DOUBLE: 64 λ¸¡µãÊý £¬¹æģԼΪ -1.7e308 µ½ 1.7e308

¶¨µãÀàÐÍ

DECIMAL: ¶¨µãÊý×Ö £¬ÓÃÓÚ׼ȷÅÌËã

NUMERIC: Óë DECIMAL ÀàËÆ £¬µ«½öÖ§³ÖÓÐÏÞµÄСÊýλÊý

×Ö·û´®ÀàÐÍ

CHAR(n): Àο¿³¤¶È×Ö·û´® £¬³¤¶ÈΪ n

VARCHAR(n): ¿É±ä³¤¶È×Ö·û´® £¬×î´ó³¤¶ÈΪ n

TEXT: ³¤×Ö·û´® £¬³¤¶È²»ÏÞ

ʱ¼äºÍÈÕÆÚÀàÐÍ

DATE: ÈÕÆÚ £¬ÃûÌÃΪ YYYY-MM-DD

TIME: ʱ¼ä £¬ÃûÌÃΪ HH:MM:SS

DATETIME: ÈÕÆÚºÍʱ¼ä £¬ÃûÌÃΪ YYYY-MM-DD HH:MM:SS

TIMESTAMP: ʱ¼ä´Á £¬¼Í¼¼Í¼µÄ½¨Éè»ò¸üÐÂʱ¼ä

ÆäËûÀàÐÍ

BLOB: ¶þ½øÖƴ󹤾ß £¬ÓÃÓÚ´æ´¢¶þ½øÖÆÊý¾Ý

ENUM (Öµ1, Öµ2, …): ö¾ÙÀàÐÍ £¬Ö»ÔÊÐí´æ´¢Ö¸¶¨µÄÖµ

SET (Öµ1, Öµ2, …): ÜöÝÍÀàÐÍ £¬ÔÊÐí´æ´¢Ò»×éÖµ

ÒÔÉϾÍÊÇmysqlÖг£¼ûµÄÊý¾ÝÀàÐÍÓÐÄÄЩ?µÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ