Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 14th, 2007, 12:13 PM   #1
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 190
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Question 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?
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Jul 14th, 2007, 12:17 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 14th, 2007, 12:25 PM   #3
mattireland
Hobbyist Programmer
 
mattireland's Avatar
 
Join Date: Jul 2007
Location: Wales, United Kingdom
Posts: 190
Rep Power: 2 mattireland is on a distinguished road
Send a message via MSN to mattireland Send a message via Skype™ to mattireland
Ah it's OK - I worked it would. Shouldn't have a number of characters by the double! Thanks for the reply though!
__________________
Matt Ireland
http://www.mattireland.org
matt@mattireland.co.uk
mattireland is offline   Reply With Quote
Old Jul 25th, 2007, 7:21 PM   #4
Komodo
Hobbyist Programmer
 
Komodo's Avatar
 
Join Date: May 2005
Location: Scranton, PA
Posts: 112
Rep Power: 0 Komodo is an unknown quantity at this point
Send a message via AIM to Komodo Send a message via MSN to Komodo
"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.
Komodo is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting the wrong answer 357mag C++ 6 Jul 4th, 2007 7:18 AM
What's wrong with this code? titaniumdecoy Python 25 Jun 12th, 2006 12:46 PM
Is there anything wrong with this code? elford Java 2 Dec 27th, 2005 8:11 AM
What is wrong with this code? c0ldshadow Visual Basic .NET 5 Dec 5th, 2005 5:37 PM
C++ vs. C# --- OOPS wrong thread sorry Stash Project Ideas 0 Jul 1st, 2005 11:28 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:40 AM.

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