我创建了两个表:怎么显示两个表中的记录(所选列)
Name:table1,table2
table1 consists of:id,name,contactnumber
101,john,9955443322
102,peter,9955443311
table2 consists of:id,place,date
101,chennai,15-05-2014
102,munbai,13-05-2014
select table1.id
,table1.contactnumber
,table2.date
from table1,table2
where table2.date = 29-09-2014
&& table2.loannumbers=table1.loannumber
归来却空空的结果集。
我想显示的列:
id,name,date
我想要显示的行:
所有的(table2)date=15-05-2014 and (table1)id=id(table2).
在你使用未在所提供的表结构列出的列查询:'loadnumber',是正常的吗? – 2014-09-30 08:20:46