I just want to generate a list like this
XY0001
XY0002
XY0003
The prefix is same for all rows. Need fixed length (6 in this example)
Looking for an easy way to produce such list to put it into temp table.
MS SQL
for a very small number this would do:
DECLARE @TempList TABLE (Name VARCHAR(100));
insert into @TempList Values ('XY00001')
insert into @TempList Values ('XY00002')
insert into @TempList Values ('XY00003')
insert into @TempList Values ('XY00004')
select * from @TempList