ã¨ããWebã¢ããªã±ã¼ã·ã§ã³ãæ£æä¼ã¿ã®ééçºãã¦ããã®ã§ããã諸è¬ã®äºæ ã«ããæåã«ä½¿ã£ã¦ããMySQLããSQLiteã«åãæ¿ãããã¨ã«ãªãã¾ããã ãã®éã«ãããã¤ãSQLã夿´ããå¿ è¦ããã£ãã®ã§ãSQLiteã¨MySQLã§ä½¿ããæã®éããã¡ã¢ãã¦ããã¾ãã CREATE TABLEæ AUTO_INCREMENT IDãªã©ã§ãã使ãAUTO_INCREMENTã§ãããSQLiteã§ã¯ãããä»ããã¨æ§æã¨ã©ã¼ã«ãªãã¾ãã ã§ã¯ãã©ã®ããã«AUTO_INCREMENTãå®ç¾ãããã¨ããã¨ã CREATE TABLE hoge( id integer PRIMARY KEY ); ã¨ããintegeråã§ãã©ã¤ããªãã¼ã®ã«ã©ã ã«ã INSERT INTO hoge(id) values(null); ã¨å ¥ããã°ãªã¼ãã¤ã³ã¯ãªã¡ã³ãããã¾ãã 0ãæ¿å ¥ããã¨MySQLã ã¨ã¤ã³ã¯ãªã¡ã³ãã


{{#tags}}- {{label}}
{{/tags}}