Search
 
SCRIPT & CODE EXAMPLE
 

SQL

tsql generate rows

-- generate a identity, and guid table without looping
;with guids( i, guid ) as
(
    select 1 as i, newid()
        union all
    select i + 1, newid()
        from guids
        where i < 10000
)

select i, guid   
from guids 
order by i desc
Comment

PREVIOUS NEXT
Code Example
Sql :: show sql property syntax for jpa. 
Sql :: sql server whoami 
Sql :: select all from table left join 
Sql :: select multiple tables mysql 
Sql :: how to show current database in mysql 
Sql :: postgresql get difference in hours between two dates 
Sql :: sql not in operator 
Sql :: tablo silme SQL 
Sql :: alter database datafile maxsize 32g 
Sql :: postgresql array to rows 
Sql :: oracle synonym procedure 
Sql :: 0 
Sql :: sql server get date of previous sunday 
Sql :: how to install sql server management studio in ubuntu 18.04 
Sql :: mariadb used space 
Sql :: drop procedure postgres 
Sql :: cross join sl 
Sql :: list all functions and procedures in postgres query 
Sql :: sql select statements 
Sql :: function plsql 
Sql :: mysql trim characters 
Sql :: advantages of stored procedures sql 
Sql :: sql xor 
Sql :: how mysql store datetime 
Sql :: postgresql add not null and not empty constraint 
Sql :: equi join in sql 
Sql :: what is common table expression in sql 
Sql :: mysql insert multiple rows based on select 
Sql :: sql server enterprise 
Sql :: join vs union 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =