MYSQL: update record random 2 fixed char -
i update record on field want fill random either y or n
currently using:
update table1 set field1=( substring(md5(rand()) y n)
which not working
update table1 set field1 = case floor(1 + rand()*2) when 1 'y' else 'n' end;
Comments
Post a Comment