About 10,000,000 results
Open links in new tab
  1. foreign key constraint naming scheme - Stack Overflow

    What is a standard naming scheme to use for foreign key constraints? Given these tables task (id, userid, title) note (id, taskid, userid, note); user (id, name) where Tasks have Notes, Tasks are ...

  2. How to rename FK in MS SQL - Stack Overflow

    Sep 21, 2016 · will rename FK_Employee_Person_BusinessEntityID found in the HumanResources schema to FK_EmployeeID If the schema is missing, SQL Server looks for objects in the user's …

  3. mysql - Add Foreign Key to existing table - Stack Overflow

    I want to add a Foreign Key to a table called "katalog". ALTER TABLE katalog ADD CONSTRAINT `fk_katalog_sprache` FOREIGN KEY (`Sprache`) REFERENCES `Sprache` (`ID`) ON DELETE SET …

  4. How to find foreign key dependencies in SQL Server?

    May 29, 2009 · How can I find all of the foreign key dependencies on a particular column? What are the different alternatives (graphically in SSMS, queries/views in SQL Server, 3rd party database tools, …

  5. Como adicionar uma foreign key em uma tabela já criada

    Jan 30, 2016 · Sou iniciante em mysql e não consigo adicionar uma fk em uma tabela que criei. Tenho duas tabelas (pessoa, objeto) e desejo criar uma 'fk_pessoa' em objeto que receba o valor do …

  6. What is a proper naming convention for MySQL FKs?

    Feb 10, 2010 · The reason for creating a symbolic name is for referencing when you want/need to drop the constraint. Oracle & SQL Server allow you to disable specific constraints. If you don't have fk in …

  7. Differences between "foreign key" and "constraint foreign key"

    Sep 29, 2012 · I mean for example I can create table like create table XTable ( idt int not null primary key, value nvarchar(50), idq int, constraint fk_idq foreign key(idq) references YTable(idq) ) and...

  8. List of foreign keys and the tables they reference in Oracle DB

    Mar 19, 2019 · I'm trying to find a query which will return me a list of the foreign keys for a table and the tables and columns they reference. I am half way there with SELECT a.table_name, a.column_n...

  9. Does a foreign key automatically create an index?

    An FK-relationship will often need to look up a relating table and extract certain rows based on a single value or a range of values. So it makes good sense to index any columns involved in an FK, but an …

  10. SQL como faço um insert into em uma tabela que tem FK?

    Oct 10, 2018 · Como faço um insert into em uma tabela onde existe uma FK? exemplo essa é a minha estrutura Pessoa ID (primary key) nome varchar(20) id_endereco int not null (foreign key)