MySQL Forums
Forum List  »  Newbie

concat for numbers
Posted by: Jon Ready
Date: August 15, 2005 04:32AM

Hi,

I am interested in performing a concat for numbers with a space
e.g.
select concat (num1, ' ', num2) from tablex as numconc

such that if num1 is 123 and num2 is 456 the result would be '123 456'

I believe concat should work for a string rather than number format, however having created the fields num1 and num2 in string format it still does not work.

Any advice on why this isn't working, or an alternative method to achieve the result would be most welcome.

Cheers,
Jon

Options: ReplyQuote


Subject
Written By
Posted
concat for numbers
August 15, 2005 04:32AM
August 15, 2005 11:24AM
August 16, 2005 01:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.