myMySQL数据库视图如何修改 MySQL数据库使用教程

凤凰 2021-1-19 70 1/19

mysql修改视图的方法:1、如视图存在则覆盖,如不存在则创建,代码为【create or replace view 语句】;2、通过alter语句来修改,代码为【alter view student_view(id,name....】。

myMySQL数据库视图如何修改 MySQL数据库使用教程

mysql修改视图的方法:

1、如视图存在则覆盖,如不存在则创建。

create or replace view 语句。
create or replace view algorith=temptable view student_view(nid,id,name) as select id,pid,title from student;

myMySQL数据库视图如何修改 MySQL数据库使用教程

2、通过alter语句来修改。

alter view student_view(id,name,title) as select id,name,sex from student;

相关学习免费推荐:mysql数据库(视频)

以上就是mysql视图如何修改的详细内容,更多请关注本站其它相关文章!

- THE END -

凤凰

1月19日09:33

最后修改:2021年1月19日
0

非特殊说明,本博所有文章均为博主原创。