Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2012, 12:09 AM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Alter Table statement to add Foreign Key

how do I fix this?

import.php: Missing parameter: import_type (FAQ 2.8)
import.php: Missing parameter: format (FAQ 2.8)

using this sql:
ALTER TABLE `customer_event`
ADD CONSTRAINT `event_id__FK`
Foreign Key (`event_id`) REFERENCES event(`event-id`)
 
Old February 10th, 2012, 08:04 AM
Friend of Wrox
 
Join Date: May 2011
Posts: 125
Thanks: 0
Thanked 24 Times in 24 Posts
Default

Greetings,

The error probably has nothing to do with the db structure and more to do with a missing parameter that the file 'import.php' is expecting but was not supplied. At a guess I'd check out the FAQ for the package you're using and read section 2.8 ;)





Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i alter table (primary key + identity ) keyvanjan SQL Server 2000 1 July 12th, 2007 06:49 AM
Problem in ALTER TABLE statement deepakkhopade SQL Server 2000 4 November 1st, 2004 07:51 AM
Access SQL alter table add constraint Skipmeok SQL Language 0 April 27th, 2004 08:02 PM
Alter Table - Add Column liz@trinityholdings.co.za Access 2 July 29th, 2003 03:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.