我有两个表,分别为:
id | TypeID | title | Authoe | isHtml | Content |createtime(表1)
id | type (表2)
如果我要建立一个查询,以表1的TypeID和表2的id, 并且用左外连的方式建立,应该怎样写,请大家帮个忙!!
id | TypeID | title | Authoe | isHtml | Content |createtime(表1)
id | type (表2)
如果我要建立一个查询,以表1的TypeID和表2的id, 并且用左外连的方式建立,应该怎样写,请大家帮个忙!!
select * from t1,t2 WHERE t1.typeId=t2.id
弄出来就会有一个表,那是怎么回事哦!