This is a discussion on Create View Statement within the Database Support forums, part of the Web Development category; Hi all... Can anyone explain create view statement in sql. Thanks in advance......
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all... A SQL view is a virtual table and the SQL CRERATE VIEW statement is the SQL command that adds a new view to a SQL database. A view can be accessed using the SQL SELECT statement like a table. A view is built by selecting data from one or more tables. Some views can also support the SQL INSERT, SQL UPDATE and SQL DELETE statements. In that case, the view must refer to a single table and include all NOT NULL columns of that table. Thanks... |
| |||
| Hi all... SQL views are used because they can provide the following benefits / functions: Database queries are simplified Database complexity is hidden Flexibility is increased - queries of views may not change when underlying tables change Security is increased - sensitive information can be excluded from a view Thanks... |
| |||
| Hi all... The SQL CREATE VIEW command is used as follows. SQL CREATE VIEW Statement Syntax CREATE VIEW <view_name> ( <column_name1>, <column_name2> ) AS <sql_select_statement> The number of characters that can make up SQL names for tables, columns and views varies by DBMS. In many cases the limit is 30 characters. The leading character of the name must be alphabetic - not a number or special character. The name of a new view can not duplicate the name of an existing view or table and should not be the same as a SQL reserved word. The underscore character can be used to improve readability. List elements are seperated by commas. Thanks... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drop view statement. | Pvinothkumar | Database Support | 5 | 03-25-2008 08:27 PM |
| how to create stored procedure for view to generate xml? | poornima | ASP and ASP.NET Programming | 3 | 02-24-2008 11:21 PM |
| How to create index for all columns in a view? | oxygen | Database Support | 1 | 02-07-2008 12:53 AM |
| ph ip view script | desiinder | PHP Programming | 1 | 09-11-2007 02:14 AM |
| 360 degree product view | 3DProf4online | Web Design Help | 0 | 05-28-2007 06:04 AM |