select b.membername,c.goodsname,a.quantity,a.salesvalue,a.transdate from demo.trans as a join demo.membermaster as b join demo.goodsmaster as c on (a.cardno = b.cardno and a.itemnumber=c.itemnumber);
update demo.membermaster set membername = '王五', memberphone = '13698765432', memberpid = '475145197001012356', memberaddress = '天津', sex = '女', birthday = '1970-01-01' where cardno = '10000001'
再次查询消费流水
1 2 3 4 5
select b.membername,c.goodsname,a.quantity,a.salesvalue,a.transdate from demo.trans as a join demo.membermaster as b join demo.goodsmaster as c on (a.cardno = b.cardno and a.itemnumber=c.itemnumber);
select b.membername,c.goodsname,a.quantity,a.salesvalue,a.transdate from demo.trans as a join demo.membermaster as b join demo.goodsmaster as c on (a.memberid = b.id and a.itemnumber = c.itemnumber);