Home > Backend Development > PHP Tutorial > 怎么查詢mysql的多个不同表

怎么查詢mysql的多个不同表

WBOY
Release: 2016-06-13 10:04:05
Original
970 people have browsed it

如何查詢mysql的多个不同表
例如 表 a
Lname online date
火狐 good 2010-01-02
IE very good 2010-01-03


表 b
Cname os date
psp linux 2010-01-01
ps3 linux 2010-01-06

我想两个不同的表一起排列怎么排??
1 2 3
psp linux 2010-01-01
火狐 good 2010-01-02
IE very good 2010-01-03
ps3 linux 2010-01-06

------解决方案--------------------

SQL code
select * from aunion allselect * from border by date<div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template