Jump to content

[SOLVED] Mysql Creating Table


Chain2r

Recommended Posts

Ok, so heres the code.

 

 

 

CREATE TABLE cgmfx ( 
-> year int, 
-> month VARCHAR(20), 
->shares FLOAT(10,3), 
->gainloss FLOAT(10,2), 
->change FLOAT(10,2) 
-> );

 

with this code i get this error.

 

ERROR 1064 (42000) : you have an error in your sql syntax; check the manual that corresponds to your mysql server version for the right syntax to use near ' change FLOAT(10,2) ' at line 6.

 

im using Mysql Version 5.0.51a php version 5.2.5 and apache 2.2.8 . I have tried google to no avail, i'm just restarting to learn Mysql, been a long time, but i did not have this problem before.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.