select houses.id as 房屋编号, houses.address as 房屋地址, owner.custname as 租户姓名
from houses, owner
where houses.owner_id = owner.id;
select houses.id as 房屋编号, houses.address as 房屋地址, owner.custname as 租户姓名
from houses, owner
where houses.owner_id = owner.id;
本文标题:mysql表一对一查询
本文链接:https://www.haomeiwen.com/subject/vhxonktx.html
网友评论