é£ãã£ã½ãã¿ã¤ãã«ããRDBã®ãã©ã³ã¶ã¯ã·ã§ã³ã絡ãã¨ã¢ããªã±ã¼ã·ã§ã³å´ã®ããã°ã©ã ãæ¸ãã«ãããªããã¨ãã話ã§ãã ãã¡ããã§ãããRDBã®ãã©ã³ã¶ã¯ã·ã§ã³æ©è½ã¯å大ã§ãããWebã¢ããªã±ã¼ã·ã§ã³ã§ãæèãã¦ä½¿ããªããã°ãªãããããã©ã³ã¶ã¯ã·ã§ã³ãªãã¦ä½¿ããªãã¨è¨ãããããã§ã¯ããã¾ããã åæã§ããªãé¢æ° PHPã§ç´ ã®PDOããèãã¾ãããã¨ãã°ã以ä¸ã®é¢æ°ã«åé¡ã¯ããã§ããããï¼ <?php /* * å¤ããã¼ã¿ãã¢ã¼ã«ã¤ããã¼ãã«ã«ç§»ãé¢æ°ã®ã¤ã¡ã¼ã¸ */ function moveDataToArchive(PDO $db) { $db->beginTransaction(); try { $db->exec(' INSERT INTO archives SELECT * FROM data WHERE published < CURRENT_DATE '); $db->exec
{{#tags}}- {{label}}
{{/tags}}