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
652229
March 24, 2005 01:20PM
5896
October 09, 2012 09:48PM
4072
December 19, 2011 10:13PM
Solution to Bill Monk's problem creating table structures.
8784
May 19, 2009 10:17PM
9620
May 09, 2006 06:01PM
8712
November 15, 2006 02:05PM
7773
T D
February 01, 2008 06:47AM
9762
August 27, 2008 08:08AM
10085
December 03, 2008 10:15AM
6511
May 01, 2009 07:39AM
3808
August 29, 2011 04:46PM
5471
s l
December 15, 2009 01:48PM
5339
December 22, 2009 02:54AM
3575
February 18, 2011 08:55AM
4314
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.