MySQL Forums
Forum List  »  Stored Procedures

Re: Help - variable removing leading "0" in stored procedure
Posted by: Emma Middlebrook
Date: January 12, 2006 03:36AM

Actually I just tried this in SQL Server at work and it won't work.. I think the problem is in your parameter integer.. A mobile number starts with 0 and in integer terms this means nothing, if you assign 0123 to an integer in a programming language it will chop off any preceding 0's and set it to 123.

Are you developing this in c# or something? Is it not possible to specify your parameter as a string type and in your application assign the integer to a string. There are functions there that you could use to construct a string that kept the preceding 0.

Emma

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Help - variable removing leading "0" in stored procedure
1449
January 12, 2006 03:36AM


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.