-
-
Save Kcko/b368919a7cbfb8b120e4cd9766083044 to your computer and use it in GitHub Desktop.
Insert A Random String from List in MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE tablename | |
SET columnname = ELT(0.5 + RAND() * 6, 'value 1','value 2','value 3','value 4','value 5','value 6') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment