ãããããã¯ã¯è¤æ°ã®ãã©ã³ã¶ã¯ã·ã§ã³ãè¤æ°ã®ã¬ã³ã¼ããããã¯ããå ´åã«ã¿ã¤ãã³ã°ã«ãã£ã¦çºçããã ãã©ã³ã¶ã¯ã·ã§ã³Aãã¬ã³ã¼ã1ãããã¯âæå ãã©ã³ã¶ã¯ã·ã§ã³Bãã¬ã³ã¼ã2ãããã¯âæå ãã©ã³ã¶ã¯ã·ã§ã³Aãã¬ã³ã¼ã2ãããã¯â2ã®ããã¯ã®è§£æ¾å¾ ã¡ ãã©ã³ã¶ã¯ã·ã§ã³Bãã¬ã³ã¼ã1ãããã¯â1ã®ããã¯ã®è§£æ¾å¾ ã¡ AãBãäºãã®ããã¯ã®è§£æ¾ãå¾ ã¤ãã¨ã«ãªã£ã¦ãããããã¯ããã MySQLã¯ãããããã¯ãæ¤åºããã¨ãçæ¹ã®ãã©ã³ã¶ã¯ã·ã§ã³ã§ãããããã¯ã¨ã©ã¼ãçºçããã¦å¼·å¶çã«ãã©ã³ã¶ã¯ã·ã§ã³ãçµäºãããã ãã¨ãã°ã次ã®ãããª2ã¤ã®ãã©ã³ã¶ã¯ã·ã§ã³ãåæã«åããã¨ãããããã¯ã¨ã©ã¼ãçºçããã CREATE TABLE t (a INT, val INT, INDEX(a)); INSERT INTO t VALUES (1,0),(2,0),(3,0),(4,0),(5,0),(6,0)
{{#tags}}- {{label}}
{{/tags}}