MySQL Forums
Forum List  »  InnoDB

Solution to Bill Monk's problem creating table structures.
Posted by: Mohamed Infiyaz Zaffer Khalid
Date: May 19, 2009 10:17PM

Hello Bill Monk, your declaration of the third table vsProposalUnitAllocation contains an error. your 5th line in defining this table reads:

AllocationPercent decimal(5,2) unsigned not null default 0.00

But the problem is the data type UNSIGNED is meant to be an UNSIGNED INTEGER as with many other languages (like C/C++). So it would be errroneous to say that it contains 2 decimals.

Thus the correct syntax should be:

AllocationPercent float not null default 0.00

I hope this solves the problem - I know it does as I've tried it on my system.

If you find this post useful, please take the time to mark it SOLVED using a new reply so that it benefits the others with similar issues.

Oh, and one more thing... I hope you take it in good spirit. This thread is dealing with a specific error number (1005/150) in particular and your problem is not related to it. As it is, this thread is pretty long and it would be good to have any non-related issues on a NEW THREAD. Many thanks.

Happy coding!
Khalid

==================================
The Smart Solutions Expert

PHP MySQL Javascript VB6 C/C++
http://www.marhaonline.com

Options: ReplyQuote


Subject
Views
Written By
Posted
652958
March 24, 2005 01:20PM
5999
October 09, 2012 09:48PM
4159
December 19, 2011 10:13PM
Solution to Bill Monk's problem creating table structures.
8917
May 19, 2009 10:17PM
9732
May 09, 2006 06:01PM
12961
November 15, 2006 02:05PM
7855
T D
February 01, 2008 06:47AM
9847
August 27, 2008 08:08AM
10163
December 03, 2008 10:15AM
6617
May 01, 2009 07:39AM
3897
August 29, 2011 04:46PM
5545
s l
December 15, 2009 01:48PM
5415
December 22, 2009 02:54AM
3654
February 18, 2011 08:55AM
4445
May 24, 2011 10:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.