Results 1 to 4 of 4

Thread: Schema in SQL2

  1. #1
    \"Dritan\" Guest

    Schema in SQL2

    I am a student studying in the first year of my IT graduation, although I have got very much interest in the the software development, but if I have much interested in the Database concepts , I have gone through the threads been created in this field , so I have covered the basic concepts , but I will request you to cover once again the various schemas being used in this SQL. So please reply back your post as much as you can.

  2. #2
    Join Date
    Apr 2009
    Posts
    488

    Re: Schema in SQL2

    The SQL2 schema is the principal high-level "container" for items in a SQL2 database structure. A schema is a given its identity entity inside the database and comprise the descriptions for:Tables, are the simple associated structures , which is identified with a primary key and has a foreign key constraints as well. This also contain many other structures such as domains and views. I really apologize for my lack of knowledge.

  3. #3
    Join Date
    Apr 2009
    Posts
    569

    Re: Schema in SQL2

    If talked about the view in detail they are the virtual tables, these vies are created Views, which are "virtual tables" resultant from the "genuine tables" in the database, Domains, which work like comprehensive data. You can create a view as you create a table , with a simple create query , following is the syntax of creating a view :
    Create View Viewname
    Simply you can delete it with a drop statement.

  4. #4
    Join Date
    May 2009
    Posts
    539

    Re: Schema in SQL2

    Code:
    CREATE SCHEMA MYSCHEMA AUTHORIZATION ALLEN
    CREATE TABLE CITIZEN 
    (NAME VARCHAR(20),
    AGE INTEGER)
    CREATE TABLE AREAS
    (CITY VARCHAR(20),
    STATE VARCHAR(20))
    GRANT ALL PRIVILEGES
    ON CITIZEN TO PUBLIC
    GRANT SELECT
    ON AREAS
    TO PETER
    The above example shows how to create the Schema, this is the most simplest example.The schema describes the two tables and provides certain other users authorization to control them. It does not describe any added structures, such as views or assertions.

Similar Threads

  1. Schema Admins
    By AngerEyes in forum Active Directory
    Replies: 1
    Last Post: 22-05-2011, 03:57 AM
  2. Don't know about XML schema
    By ScarFace 01 in forum Software Development
    Replies: 5
    Last Post: 04-02-2010, 09:20 AM
  3. Get ddl of schema from toad
    By Katlin in forum Software Development
    Replies: 2
    Last Post: 29-05-2009, 06:05 PM
  4. How to create XML Schema
    By RogerFielden in forum Software Development
    Replies: 2
    Last Post: 27-04-2009, 07:09 PM
  5. How to Validate Elements using XML Schema
    By StudyBoy in forum Software Development
    Replies: 3
    Last Post: 27-03-2009, 09:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,319,045.70046 seconds with 17 queries