Search
 
SCRIPT & CODE EXAMPLE
 

SQL

generate random data postgresql

insert into towns (
    code, article, name, department
)
select
    left(md5(i::text), 10),
    md5(random()::text),
    md5(random()::text),
    left(md5(random()::text), 4)
from generate_series(1, 1000000) s(i)
Comment

postgresql populate data random

create table t_random as select s, md5(random()::text) from generate_Series(1,5) s;
Comment

postgresql get random data from table

select your_columns from your_table ORDER BY random()
Comment

PREVIOUS NEXT
Code Example
Sql :: drop databse 
Sql :: sql update by id 
Sql :: row number sql 
Sql :: update query in sql 
Sql :: keep getting an error when I try to connect to mysql workbench 
Sql :: sql not exists 
Sql :: concatenation in sql 
Sql :: foreign key in sql dbms 
Sql :: what is subquery in sql 
Sql :: sql average 
Sql :: what is between keyword used for 
Sql :: sql min 
Sql :: find in set in postgresql 
Sql :: select top values sql 
Sql :: parent child hierarchy in sql 
Sql :: postgresql between 
Sql :: default username and password for oracle 11g 
Sql :: table users 
Sql :: inspecting a column unique/distinct values in SQL 
Sql :: SQL Addition Operator 
Sql :: sql in operator 
Sql :: how to order a union sql 
Sql :: mysql update sum same table 
Sql :: postgres where 
Sql :: sql server port 1434 
Sql :: what is ssrs and ssis in sql server 
Sql :: sql to linq converter 
Sql :: mysql 5 minutes ago 
Sql :: decode plsql 
Sql :: mysql group by derived column 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =