Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

generate random & unique mysql string

DO 
    SELECT LEFT(UUID(), 8) INTO @var;
    INSERT INTO col (@var);
WHILE there_is_a_unique_constraint_violation
 
PREVIOUS NEXT
Tagged: #generate #random #unique #mysql #string
ADD COMMENT
Topic
Name
4+5 =