sales
&表中的所有记录器purchase
只输入一次。我已经仔细检查过了。但是,我希望以这样的方式组合这两个表,以便两个表都被完全提取。这是我的查询说明,该timestamp
列具有 mysqlDATE
格式
Select
sales.ID as sid,
sales.saleHatsh,
sales.timestamp as sdate,
sales.gatePass as sGP,
sales.pname as sPN,
sales.description as sDES,
sales.balance as sbal,
purchase.ID as pid,
purchase.purchaseHatsh,
purchase.timestamp as pdate,
purchase.gatePass as pGP,
purchase.pname as pPN,
purchase.description as pDES,
purchase.balance as pbal
from sales,purchase
where sales.timestamp='2013-11-11' OR purchase.timestamp='2013-11-11'
这是我的查询 & sales
&purchase
表
的结果
Sales
表只有 2 个记录器
采购表只有4个记录仪