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.
Sachin SinghRank #66 · 26.2K reputationPosted Oct 22, 2020, 4:38 AM EDT
Pankajkumar PatelRank #181 · 13.4K reputationPosted Oct 22, 2020, 4:53 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 22, 2020, 5:56 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 22, 2020, 4:36 AM EDT
Varun SetiaRank #308 · 8.2K reputationPosted Oct 22, 2020, 5:21 AM EDT
Kamil Krupski154 reputationPosted Oct 22, 2020, 4:20 AM EDT
Mageshwaran RRank #411 · 6.1K reputationPosted Oct 22, 2020, 5:24 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts