Hi, i want to know if it's possible to have information about a
record, if this record is referenced by another record of another
table ?
Before deleting this record i want to know if another table is
reference it.
Escuse for my english,
SamuelA FOREIGN KEY constraint should do thsi for you.
CREATE TABLE Employees (...department INTEGER NOT NULL
CONSTRAINT FK_employees_dept REFERENCES Departments (department)...)
--
David Portas
SQL Server MVP
--
Showing posts with label referenced. Show all posts
Showing posts with label referenced. Show all posts
Thursday, March 8, 2012
Check constraint
Labels:
constraint,
database,
microsoft,
mysql,
oracle,
record,
referenced,
server,
sql,
table
Check constraint
Hi, i want to know if it's possible to have information about a
record, if this record is referenced by another record of another
table ?
Before deleting this record i want to know if another table is
reference it.
Escuse for my english,
SamuelA FOREIGN KEY constraint should do thsi for you.
CREATE TABLE Employees (...department INTEGER NOT NULL
CONSTRAINT FK_employees_dept REFERENCES Departments (department)...)
David Portas
SQL Server MVP
--
record, if this record is referenced by another record of another
table ?
Before deleting this record i want to know if another table is
reference it.
Escuse for my english,
SamuelA FOREIGN KEY constraint should do thsi for you.
CREATE TABLE Employees (...department INTEGER NOT NULL
CONSTRAINT FK_employees_dept REFERENCES Departments (department)...)
David Portas
SQL Server MVP
--
Labels:
anothertable,
arecord,
constraint,
database,
microsoft,
mysql,
oracle,
record,
referenced,
server,
sql
Subscribe to:
Posts (Atom)