MySQLã«ã¯ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ãããã¤ãããã®ã§ããã®è¾ºã¯ã¡ãã£ã¨ãã£ã¡ãã«ãªã£ã¦ãã¨æãã¾ããInnoDBãMyISAMãã§ãå°ã話ãéã£ã¦ããã¨ã¯æããã©ãããã¾ã§ã¯è¿½ãã¦ã¾ããã VARCHAR(n)ã¯æåæ° æã¯ãã¤ãæ°ã ã£ããããªæ°ããããã©ãä»ã¯æåæ°ãè¨å®ãã¾ãã VARCHAR(255)ã§è¯ãã¨æã CHAR ã¨ã¯å¯¾ç §çã«ãVARCHAR å¤ã¯å¿ è¦ãªæåæ°ã¨ãé·ããè¨é²ããçºã®1ãã¤ã(255ãããé·ãã«ã©ã ã¯2ãã¤ã)ã ããå©ç¨ãã¦æ ¼ç´ã§ãã¾ãã http://dev.mysql.com/doc/refman/5.1/ja/char.html VARCHARã¯å¯å¤é·ãªã®ã§ãä½åã«è¨å®ãã¦ãã¹ãã¬ã¼ã¸ãç¡é§ã«é£ãäºã¯ç¡ãã¨æãã¾ãããã VARCHAR(256)以ä¸ã¯ãé·ãã®è¨é²ã1ãã¤ãå¢ããã¿ãããªã®ã§ãç¹ã«çç±ãç¡ããã°VARCHAR(255)ã«è¨å®ãã¦ããã®ãè¯ã
{{#tags}}- {{label}}
{{/tags}}