On Thu, Dec 13, 2012 at 7:53 AM, laxglx wrote:
> Can anybody plz tell me how to add a foreign key an existing table using SQL
> Queries?
>>> I got the command, nut can't understand
>
> ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address)
> REFERENCES addresses (address) MATCH FULL;
It doesn't look like you're using Django at all. I suggest taking your
question to the support community for the database you're using.
On Thursday, December 13, 2012 4:53:25 AM UTC-8, laxglx wrote:
>
> Can anybody plz tell me how to add a foreign key an existing table using
> SQL Queries?
> >
Are you sure you're using Django? This SQL statement does not look like
something django would have emitted. Perhaps your query is best taken to
the support community for the database you're using. Our advice here may
not be relevant to you.
The issue you're having is what the South package is
Can anybody plz tell me how to add a foreign key an existing table using
SQL Queries?
>> I got the command, nut can't understand
ALTER TABLE distributors ADD CONSTRAINT distfk FOREIGN KEY (address) REFERENCES
addresses (address) MATCH FULL;
What's "distfk" here if it is key name what is (add
4 matches
Mail list logo