Hello
this is not built in MSSQL, but PostgreSQL has a "generate_series" function
Regards
Pavel Stehule
2011/8/16 msi77 :
>
> Are you sure that dbo.F_TABLE_NUMBER_RANGE is in SQL Server?
> I suppose that this is UDF written by user.
>
>
> 16.08.2011, 08:53, "Yuan HOng" :
>> Hi,
>>
>> With MS-SQ
Are you sure that dbo.F_TABLE_NUMBER_RANGE is in SQL Server?
I suppose that this is UDF written by user.
16.08.2011, 08:53, "Yuan HOng" :
> Hi,
>
> With MS-SQL sever, there is a built-in utility function
> dbo.F_TABLE_NUMBER_RANGE which generates a list of number between the
> given range. For e
Hi,
With MS-SQL sever, there is a built-in utility function
dbo.F_TABLE_NUMBER_RANGE which generates a list of number between the
given range. For example:
select dbo.F_TABLE_NUMBER_RANGE(1, 5) will return:
number
---
1
2
3
4
5
This is extremely convenient for generating consecutive dat