Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 concat for numbers?

Author  Topic 

sqlclarify
Yak Posting Veteran

56 Posts

Posted - 2008-08-25 : 19:04:38
I have two numbers(12,2)'s and I am trying to concatenate them using ||.

Do I have to use to_char(number) before I concatenate them? It looks like it is working even if I don't use to_char? Why is it working? I thought || is supposed to work only for strings?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-25 : 19:15:01
Is this an Oracle question or are you using Microsoft SQL Server, which is what this site is for?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sqlclarify
Yak Posting Veteran

56 Posts

Posted - 2008-08-26 : 16:57:32
Yes, I think what I am using is Oracle. Sorry got confused for a second since what I am using is Oracle SQL Developer.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-26 : 17:01:12
There's an oracle forum over at dbforums. You could also try the oracle site.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -