当前位置:网站首页>Use of views
Use of views
2022-07-26 07:37:00 【Xiaolesheng】
Concept
The view is a virtual table , It preserves SELECT The definition of the statement , It is a way for users to view data in data .
Through it, you can browse part or all of the data in the table in the way you need , And these data are still stored in the table of the database , Such a table is called a base table .
characteristic
The data in the view does not belong to the view itself , It's a basic table , Views can be treated like tables insert,update,delete operation .
The view cannot be modified , After the table is modified or deleted, the view should be deleted and rebuilt .
There is no limit to the number of views , But names can't be repeated with views and tables , Have uniqueness .
Views can be nested , One view can be nested with another view .
View cannot be indexed , Cannot have an associated trigger and default value ,sql server Cannot be used after a view order by Sort .
Create and use views
- Create view
create view view_name as select_statement( Some operations of adding, deleting, modifying and querying tables )- eg:
create name v_student as select * from student where stuno=“20000002”
- eg:
- View view
select * from v_student; - Modify the view
alter view view_name as select_statement- eg:
alter view v_student as select stuname,stuno from student where class=‘002’;
- eg:
- Delete view
drop view view_name;- eg:
drop view v_student;
- eg:
边栏推荐
- WCF deployed on IIS
- C # use log4net to record logs (basic chapter)
- What is message subscription and publishing?
- Speech at 2021 global machine learning conference
- DevExpress.XtraEditors.DataNavigator用法
- Model pruning 3: learning structured sparsity in deep neural networks
- With someone else's engine, can it be imitated?
- JMeter performance test saves the results of each interface request to a file
- pycharm常用快捷键
- 总结软件测试岗的那些常见高频面试题
猜你喜欢

什么是消息订阅和发布?

Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architectures论文翻译/笔记

在线问题反馈模块实战(十四):实现在线答疑功能

Network ()
![[200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description](/img/34/082364611754b5d2ede5ac2f3a42cc.png)
[200 opencv routines] 231. Gray level co-occurrence matrix (GLCM) for feature description

20220209 create a basic Servlet

dcn(deep cross network)三部曲

“尝鲜”元宇宙,周杰伦最佳拍档方文山将于7月25日官宣《华流元宇宙》

DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network

Anaconda 中安装 百度飞浆Paddle 深度学习框架 教程
随机推荐
Model pruning 3: learning structured sparsity in deep neural networks
How to close the high-level port
基于Thinkphp的开源管理系统
[C language] do you really know printf? (printf is typically error prone, and collection is strongly recommended)
NFT digital collection development: digital collections help enterprise development
DevExpress.XtraEditors.DataNavigator用法
What is message subscription and publishing?
爬虫->TpImgspider
Ethernet switching security
Crawler data analysis
Learning Efficient Convolutional Networks Through Network Slimming
JWT quick start
漂洋过海来看你
July training (day 18) - tree
C # use log4net to record logs (basic chapter)
HOT100 hash
元宇宙基础设施:WEB 3.0 chain33 优势分析
Leetcode 206. reverse chain list (2022.07.25)
Hystrix配置简单说明
Tensorflow learning diary tflearn