I created a stored procedure that returns, for example,
00001 FROM 40900100001 00002 from 40900100002 19999 from 40900119999
I want to increase this value to
00001 --> 0002 00002 --> 00003 19999 --> 20000
How can i do this?
How about something like
DECLARE @Val VARCHAR(20) SELECT @Val = '00011' SELECT REPLICATE('0', LEN(@Val) - LEN(@Val + 1)) + CAST((@Val + 1) AS VARCHAR(20))
Source: https://habr.com/ru/post/1779551/More articles:Should I worry about the "missing semicolon" in JSLint? - javascriptHow to store C library dependencies in version control? - cjqGrid tableToGrid - display a message if rows are not found in the table - jqueryJqGrid - not submit data message in grid? - jqueryabout random values - javaregex question php preg_match - phpHow to return value on aasm event? - ruby-on-railsHow to get time zone from request - javaHow to programmatically insert a progress bar on an image - androidJQuery AJAX download function from plugin - jqueryAll Articles