Skip to content

Commit 32e8be5

Browse files
committed
Views
1 parent b334fcc commit 32e8be5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mysql-queries.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,11 @@ In database management, an aggregate function is a function where the values of
8181
| 06. |DELETE FROM t |Delete all the rows from a table named t|
8282
| 07. |DELETE FROM tWHERE condition |Delete all rows from that a table named t that match a certain condition|
8383

84+
85+
#### Views
86+
87+
A view is a virtual table that is a result of a query. They can be extremely useful and are often used as a security mechanism, letting users access the data through the view, rather than letting them access the underlying base table:
88+
89+
|Sl.No|Query | Description |
90+
|-----|-----------------|---------------------------------------------------|
91+
| 01. |CREATE VIEW view1 AS SELECT c1, c2 FROM t1 WHERE condition|Create a view, comprising of columns c1 and c2 from a table named t1 where a certain condition has been met.|

0 commit comments

Comments
 (0)