视图
视图:可以理解成虚拟表。
--创建视图,实现显示卡号,身份证,姓名,余额
create view View_Account_Card as
select CardId 卡号,AccountCode 身份证号,RealName 姓名,CardMoney 余额
from BankCard
inner join AccountInfo on BankCard.AccountId = AccountInfo.AccountId;
--查看视图
select*from View_Account_Card;
--删除视图
drop view View_Account_Card;
标签:Account,--,18,视图,AccountInfo,Card,View
From: https://www.cnblogs.com/Starry-blog/p/16817186.html