Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

insert random numbers in columns postgress

update foo
   set bar = floor(random() * 9 + 1);  -- from 1 to 10, inclusive
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #random #numbers #columns #postgress
ADD COMMENT
Topic
Name
7+8 =