MySQLå´ã®ç°å¢ãæ´ãã Geometoryåã¯MySQLã§ç¨æããªãã¨ãããªãã®ã§ãå¿ è¦ãªãã¼ãã«ãç¨æãã¾ããSPATIAL INDEXãInnoDBã§ã¯ä½¿ç¨ã§ããªãã®ã§ããã以å¤ã®DBãæå®ããå¿ è¦ãããã¾ããä»åã¯MyISAMã使ç¨ãã¾ããã CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, latlng geometry NOT NULL, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL SPATIAL INDEX ( `latlng` ) ) ENGINE=MyISAM;æ¢ã«ãã¼ãã«ãç¨æããã¦ããå ´åã¯ãALTER TABLEããã°æ§ãã¾ãããGeometryå
{{#tags}}- {{label}}
{{/tags}}