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

database

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

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

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

 

以上是 mysql从一张表查出数据存到另一张表和innerjoin的用法 的全部内容, 来源链接: utcz.com/z/533793.html

回到顶部