select sh_bind.id,sh_bindmsg.name,sh_type.name from sh_bind, sh_bindmsg, sh_type where sh_bind.bid = sh_bindmsg.id and sh_bind.tid = sh_type.id包行的 你自己看看是不是表名或是字段名写错了
select sh_bind.id,sh_bindmsg.name,sh_type.name from sh_bind, sh_bindmsg, sh_type where sh_bind.bid = sh_bindmsg.id and sh_bind.tid = sh_type.id通过主外键关系关联的各表可以进行多表联合查询