Re: Constraints/On Delete...
От
Stephan Szabo
Тема
Re: Constraints/On Delete...
Дата
Msg-id
20030104091836.Y21507-100000@megazone23.bigpanda.com
Ответ на
Re: Constraints/On Delete... (Boget, Chris)
Список
Дерево обсуждения
Re: Constraints/On Delete... "Boget, Chris" <chris@wild.net>
Re: Constraints/On Delete... Stephan Szabo <sszabo@megazone23.bigpanda.com>
On Sat, 4 Jan 2003, Boget, Chris wrote:
> > ALTER TABLE "second" DROP CONSTRAINT "$1";
>
> So the reason mine wasn't working (which looks exactly
> like yours) is because there was the above constraint on
> the table? What is the $1? How can I view the existing
> constraints for any particular table?
Not quite. In your example, you had foreign key (record_num)
references "first"("record_num") which wasn't the correct column to be
referencing from so the data didn't line up correctly.
"$1" is the default name for the first unnamed check/fk constraint on the
table (as of 7.3).
and I think \d В списке pgsql-general по дате отправления