Merge 2 tables for a SELECT query?

前端 未结 3 1749
独厮守ぢ
独厮守ぢ 2021-01-03 07:42

First.. here are the two tables I\'ve created (sans irrelevant columns)..

CREATE TABLE users_history1 (
  circuit tinyint(1) unsigned NOT NULL default \'0\',         


        
3条回答
  •  长情又很酷
    2021-01-03 08:00

    Select col1 from test1 where id = '1'
    union 
    select * from table2 
    

    this one can also used for the joining to tables.

提交回复
热议问题