---
title: "union来合并两个表的列"
author: "Mr.Cheney"
date: "2012-03-23T15:32:00Z"
tags: []
categories: ["数据库"]
slug: "union"
draft: false
lastmod: "2012-03-26T22:11:08Z"
id: 1464510
url: "https://mr-cheney.iteye.com/blog/1464510"
---

注意两个表的字段在查询中对应，要有相同的数据类型。

如下图结果

![](http://hi.csdn.net/attachment/201203/23/0_133248810652nO.gif)