mysql视图创建

create or replace view partner_v as

select a.id,vendorname,address,nation,contactperson,tel1,tel2,jylx,partnerlx,d.xian,c.city,b.

province 

from partner_mgnt_md as a join province  b join city c join area d

on (b.ID=a.province

and a.city = c.ID

and a.area = d.ID)

 

posted @ 2019-01-14 09:13  saintdingtheGreat  阅读(154)  评论(0编辑  收藏  举报