ã¯ããä¹ã«ã¬ã¼ãã¾ã§ããå¯ãæ¥ãç¶ãã¾ããã ããã¦MySQLãç¶ããããªç§ã§ãã ååã¯ããªã¬ããã£ã¦ã¿ã¾ããããä»åº¦ã¯ãã¼ãã£ã·ã§ãã³ã°ããã¦ã¿ã¾ãã ãã¼ãã£ã·ã§ãã³ã°ã¨ã¯ ãã¼ãã£ã·ã§ãã³ã°ã¯ãç¹å®ã®ã«ã©ã æ å ±ã使ã£ã¦ããã¼ãã«ãè«ççï¼ç©ççã«èªåã§åããäºã§ç®¡çãç°¡åã«ããããããã©ã¼ãã³ã¹ã確ä¿ããæ©è½ã®ãã¨ã§ããä¾ãã°ä»åã¯ãæ´æ°æ¥æã§ãã¼ãã£ã·ã§ãã³ã°ãè¡ããã¨ã§ãç¹å®æéã®ãã¼ã¿ãåé¤ããçã®éç¨ãç°¡åã«ãªãã¾ãã ãã¼ãã·ã§ã³ã®è¨å® ãã©ã¤ããªãã¼ã®è¨å® ã¾ãæ¢åã®ãã¼ãã«ã®å ´åã¯æåã«ãã¼ãã·ã§ã³ãè¡ãã«ã©ã ããã©ã¤ããªãã¼ãå«ã¾ãã¦ããªãã¨ãããªãã®ã§è²¼ãç´ãã¾ãã mysql> ALTER TABLE usermaster_cs DROP PRIMARY KEY, ADD PRIMARY KEY(user_id, upd_datetime); æ°è¦ãã¼ãã«ã®å ´å
{{#tags}}- {{label}}
{{/tags}}