Raised This Month: $32 Target: $400
 8% 

SQL how to add .16 after .5


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gameplayonline
Member
Join Date: Jun 2017
Old 06-18-2018 , 06:37   SQL how to add .16 after .5
Reply With Quote #1

I have SQL database and table where i want add .16 is formated as text.
I have already inserted .5 and i want insert .16 after .5 it must look: .5.16 but .5 is variable value and in other user in database can have other value eg. .2 or .68 how to do please? im trying something like:
UPDATE `fusiondu_users` SET `user_groups` = `user_groups` + ".16" WHERE user_id='1'

but it still calculating 2 values to 1.

Last edited by gameplayonline; 06-18-2018 at 06:38.
gameplayonline is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-18-2018 , 06:52   Re: SQL how to add .16 after .5
Reply With Quote #2

Use the CONCAT function.
__________________
asherkin is offline
gameplayonline
Member
Join Date: Jun 2017
Old 06-18-2018 , 08:52   Re: SQL how to add .16 after .5
Reply With Quote #3

thanks.
gameplayonline is offline
Reply


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


All times are GMT -4. The time now is 15:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode