Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove trailing zeros

Status
Not open for further replies.

rrmcguire

Programmer
Oct 13, 2010
304
US
I have a formula

CONCAT('0','order_id') and when I run this is adding the zero to the beginning of order_id but is also adding 15 trailing zeros...is there any way to remove these?

thanks
 
In MSSQL this will result in [tt]0order_id[/tt].

You don't use MS SQL Server, you're in the wrong forum. SQL dialects differ.
Let's see, what you are using. What is the result of
Code:
Select @@Version
Error?

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top