Results 1 to 6 of 6

Thread: Foreign key ?

  1. #1
    Registered User
    Join Date
    Oct 2015
    Location
    India
    Posts
    177

    Foreign key ?

    Hello Dear,

    Please Tell Me What Is Foreign key ?

  2. #2
    Registered User
    Join Date
    Mar 2019
    Location
    Ahmedabad
    Posts
    180
    (1) Foreign Key provides link between data in two tables.
    (2) It acts as a cross-reference between tables because it references the primary key of another table, establishing a link between them.

    SQL Server::
    Code:
    CREATE TABLE Student(
        Id int NOT NULL PRIMARY KEY,
        Name int NOT NULL,
        DepartmentId int FOREIGN KEY REFERENCES Department(Id) )
    Last edited by Sherin; 08-21-2019 at 02:39 AM.

  3. #3

  4. #4
    Registered User
    Join Date
    Mar 2019
    Posts
    178
    A foreign key is a group of columns in a relational database table which provides a link between data in two tables. Foreign key acts as a cross-reference between tables because it refers to the primary key of another table, thereby to establish a link between them.

  5. #5

  6. #6
    Registered User
    Join Date
    Apr 2019
    Posts
    83
    A foreign key is a key used to link two tables together.it is a column or a combination of columns whose values match a Primary Key in a different table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.