Re: Help with Delete query
From: Diego F. (diegofrNO_at_terra.es)
Date: 08/30/04
- Next message: Harag: "Re: How to use CURSOR with SELECT * ?"
- Previous message: Bill: "ntext and AppendChunk method in ASP"
- In reply to: Tibor Karaszi: "Re: Help with Delete query"
- Next in thread: Tibor Karaszi: "Re: Help with Delete query"
- Reply: Tibor Karaszi: "Re: Help with Delete query"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 30 Aug 2004 15:22:13 +0200
Yes, is what you say. I want to delete the customer, but mantain the entries
in the orders table.
-- Saludos, Diego F. "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.com> escribió en el mensaje news:OtVZjwojEHA.536@TK2MSFTNGP11.phx.gbl... > So, as an example, your Orders table has a foreign key to the Customers table. And you want to > delete a customer. This is what foreign key are there for. Or are you saying that it is the > opposite. Try to describe your problems using the terms "referencing" and "referenced" table. Makes > it easier to understand. In my example, Orders is the referencing table, and Customers is the > Referenced table. Or, if it is easier for you, you could post (simplified) DDL. > > -- > Tibor Karaszi, SQL Server MVP > http://www.karaszi.com/sqlserver/default.asp > http://www.solidqualitylearning.com/ > > > "Diego F." <diegofrNO@terra.es> wrote in message news:eNp8ZpojEHA.384@TK2MSFTNGP10.phx.gbl... > > Hi. I'm trying to build the delete query from a database. > > > > The problem is that the item I try to delete has a column that is the > > foreign key of another table and it doesn't allow me to do that. Why not? > > > > I don't want to delete the items from the other table where it's the foreing > > key. > > > > Regards, > > > > Diego F. > > > > > >
- Next message: Harag: "Re: How to use CURSOR with SELECT * ?"
- Previous message: Bill: "ntext and AppendChunk method in ASP"
- In reply to: Tibor Karaszi: "Re: Help with Delete query"
- Next in thread: Tibor Karaszi: "Re: Help with Delete query"
- Reply: Tibor Karaszi: "Re: Help with Delete query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|