Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   What's wrong with this SQL? (http://www.programmingforums.org/showthread.php?t=13558)

mattireland Jul 14th, 2007 1:13 PM

What's wrong with this SQL?
 
CREATE TABLE `transactions` (

`transaction_id` INT NOT NULL AUTO_INCREMENT ,
`FirstName` VARCHAR( 20 ) ,
`LastName` VARCHAR( 20 ) NOT NULL ,
`Email` VARCHAR( 20 ) ,
`Amount` DOUBLE( 20 ) NOT NULL ,
`ExtraDetails` VARCHAR( 500 ) ,
PRIMARY KEY ( `transaction_id` )
)

It doesn't like it for some reason?

DaWei Jul 14th, 2007 1:17 PM

Some reason? Your error message, which we can't see, probably says that there's a problem near so-and-so, and to check your docs.

mattireland Jul 14th, 2007 1:25 PM

Ah it's OK - I worked it would. Shouldn't have a number of characters by the double! Thanks for the reply though!

Komodo Jul 25th, 2007 8:21 PM

"It doesn't like it for some reason?"
I find it hilarious when people post a statement as a question... how would we know if it likes it or not?

Whenever I had to mess around with SQL, it was MySQL using PHPMyAdmin, it usually tells you exactly what's wrong, I liked that.


All times are GMT -5. The time now is 2:31 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC