Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

update data with random values postgres

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