create trigger idtrigger
before insert on flow_management_copy1
for each ROW
BEGIN
SET new.ID= CONCAT(REPLACE(unix_timestamp(current_timestamp(3)),'.',''),FLOOR (RAND() * 10000));
END
show triggers;
drop trigger idtrigger
create trigger idtrigger
before insert on flow_management_copy1
for each ROW
BEGIN
SET new.ID= CONCAT(REPLACE(unix_timestamp(current_timestamp(3)),'.',''),FLOOR (RAND() * 10000));
END
show triggers;
drop trigger idtrigger