I have two columns in my table profile which are id and education. Now I want to randomly allocate education field values which can be in this set('HA','BA,'CA' and 'DA'). How can I do this in one command. id is a primary key for this table.
I have two columns in my table profile which are id and education .
Share
As documented under
ELT(N,str1,str2,str3,…):As documented under
RAND():Therefore:
See it on sqlfiddle.