I have this query
Declare @Fnum nchar(5)
While (len(@Fnum)<5
Begin
Set @Fnum += '0End
Print @Fnum
I am expecting 0000 as result
But this is not happening, I only have 0 as result?
Can I have some help please?
Begin
Set @Fnum += '0End
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Varun SetiaPosted Oct 22, 2020, 9:56 AM
Mageshwaran RPosted Oct 22, 2020, 9:24 AM
Varun SetiaPosted Oct 22, 2020, 9:21 AM
Pankajkumar PatelPosted Oct 22, 2020, 8:53 AM
Sachin SinghPosted Oct 22, 2020, 8:38 AM
Mageshwaran RPosted Oct 22, 2020, 8:36 AM
Kamil KrupskiPosted Oct 22, 2020, 8:20 AM