Jump to content

Newbie question


Relaxer

Recommended Posts

How do you proceed for your Insert queries ?

 

You should have something like:

INSERT INTO `table`

(`field`) 

VALUES

(\'5\');

If `field` is a decimal field and has a length of 10,2 this will insert value 5.00 into the database. In MySQL, even if you place values between \', values will be converted to the right format. Also, be sure to use the \".\", not the \",\" to separate the decimal part from the integer part.

 

JP.

Link to comment
https://forums.phpfreaks.com/topic/413-newbie-question/#findComment-1388
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.