ããã«ã¡ã¯ãmixiéçºé¨ã«ã¦ã¢ããªã±ã¼ã·ã§ã³éçºããã¦ãã¾ãyouheiã§ãã ä»åã¯ãMySQL-5.0.45ã®InnoDBã§é£çªã管çãããã¼ãã«ã®ããã©ã¼ãã³ã¹æ¸¬å®ããã¦ããã®ã§ããããã®éã«å°ãå¤ãã£ããããããã¯åé¡ã«ééãã¾ããã®ã§ããã®ãããããã¿ã¨ãã¦æ¸ãã¦ã¿ããã¨æãã¾ãã ã¾ãã¯ãä»å使ç¨ãããã¼ã¿ãã¼ã¹ã®ã¹ãã¼ãã¯ä¸è¨ã®ãããªãã®ã§ãã CREATE TABLE num ( id bigint unsigned NOT NULL default '0' ) Engine=InnoDB; AUTO_INCREMENTã¯ä½¿ç¨ãã¦ãã¾ããã ããã«1ã¬ã³ã¼ãã ãç»é²ãã¾ãã INSERT INTO num (id) values (1); ããã¦å®éé£çªãåå¾ããéã«ã¯ã UPDATE num SET id = LAST_INSERT_ID(id+1); ã¨ãã£ãã¯ã¨ãªã
{{#tags}}- {{label}}
{{/tags}}