mysql 视图

mysql view

  • 添加视图:

create view vw_test04 as select id as id_test from TB_TEST01 where id=1;

  • 添加或更新:

create or replace view vw_test05 as select id as id_test from TB_TEST01;

  • 只更新:

alter view vw_test05 as select * from TB_TEST01 where id=1;

posted on 2019-05-15 08:39  游荡的鱼  阅读(89)  评论(0编辑  收藏  举报

导航