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
https://forums.phpfreaks.com/topic/100567-solved-mysql-creating-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.