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 random phone number

SELECT '('
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || ') '
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || '-'
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT
    || (RANDOM() * 9)::INT;
Comment

PREVIOUS NEXT
Code Example
Sql :: query any digits record 
Sql :: dirinfo.name my snippets in stored procedure 
Sql :: how to start mysql in terminal 
Sql :: mysql change root password ubuntu 
Sql :: oracle export trigger ddl 
Sql :: cursor in sql server 
Sql :: host is not allow to connect to this mysql server 
Sql :: operator does not exist: integer = text 
Sql :: python how to connect to sql server 
Sql :: sql random sampling per group 
Sql :: oracle sql truncate table 
Sql :: how to check mysql version in xampp 
Sql :: sql join exists 
Sql :: list index mysql cli 
Sql :: sql update query 
Sql :: sql random decimal 
Sql :: helptext in sql 
Sql :: date_add mysql 
Sql :: différence entre deux dates sql oracle 
Sql :: FIND OUT THE NAME HIGHEST SALARY SQL 
Sql :: Oracle NLS_CHARACTERSET 
Sql :: add timestamp column to existing table ms sql server 
Sql :: mysql change primary key 
Sql :: create mysql user 
Sql :: postgresql restore from dump 
Sql :: what is mysql_pconnect 
Sql :: org.h2.jdbc.JdbcSQLSyntaxErrorException 
Sql :: how to change the value of a table in sql 
Sql :: mysql add fields 
Sql :: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v72-win32-x64.tar.gz 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =