mysql从一张表查出数据存到另一张表和inner join的用法

INSERT INTO test_table_public(class, name, geography)  SELECT class, name, geography FROM test_table WHERE id >= 137181 AND id <= 137214;

SELECT class, name, geography FROM test_table WHERE id >= 137181 AND id <= 137214;

SELECT t1.class, t1.name, t2.geography, t1.test FROM test_table t1 INNER JOIN test_table_public t2 ON t1.name = t2.name;

 

mysql从一张表查出数据存到另一张表和inner join的用法

上一篇:数据库-数据表增删查改


下一篇:localStorage使用、val()和text()取值的区别、通过js将html文档加入页面中、js(jquery)实时监听input输入框值的变化、路径传参、代码提交流程