次ã¯ãããã主ãã¼ãã«ã¨æç´°ãã¼ãã«ã£ã¦ãã¿ã¼ã³ã試ãã¦ã¿ãããã¼ãã«å®ç¾©ã¯ä»¥ä¸ã®éã CREATE TABLE orders ( id int not null auto_increment, order_date datetime, customer_id int, PRIMARY KEY (id) ); CREATE TABLE order_details ( id int not null auto_increment, product_name varchar(100), product_num int, product_price int, order_id int, PRIMARY KEY (id) ); ããã°ã©ã ã¯ä»¥ä¸ã®éããã¾ãã¯ordersãã¼ãã«ã¨order_detailsãã¼ãã«ã¯ï¼å¯¾å¤ã®é¢ä¿ã§ãããã¨ãRubyã«æããã次ã«data_createã¡ã½ããã§ããã
{{#tags}}- {{label}}
{{/tags}}