darle un Id correlativo a una consulta en sql server

declare @t table (nombres varchar(50) ) insert @t select 'juan' union all select 'jimmy' union all select 'andrea' select ROW_NUMBER() OVER(Order by nombres) as id, nombres from @t

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.