IT Community - Software Programming, Web Development and Technical Support

Create View Statement

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......


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-25-2008, 05:33 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Create View Statement

Hi all...


Can anyone explain create view statement in sql.


Thanks in advance...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-25-2008, 05:35 AM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default Re: Create View Statement

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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-25-2008, 05:38 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Re: Create View Statement

Hi all...


can anyone tell me Why use the sql create view statement.



Thanks in advance....
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-25-2008, 05:41 AM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default Why use the SQL Create View Statement.

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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-25-2008, 08:13 PM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Default Re: Create View Statement

Hi all...

Can anyone tell me how can i use the SQL CREATE VIEW Statement.


Thanks in advance...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-25-2008, 08:15 PM
Pvinothkumar Pvinothkumar is offline
D-Web Analyst
 
Join Date: Sep 2007
Posts: 237
Pvinothkumar is on a distinguished road
Default How can i use the sql create view statement.

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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 04:33 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0