MySQL Auto Generated Unique Text Value? -


i have mysql table looks this:

my_number my_unique_text_field

in which, my_number integer

whenever insert number field my_number, i'd unique text value assigned field my_unique_text_field. possible achieve using mysql directly? or must generate unique text string using client (i using python)?

mysql's uuid enough. in case if still worry possible duplicates - you'd better generate in python , handle unique constraint error.


Comments

Popular posts from this blog

How can I edit my VIM config so that Vim treats ".ejs" files the same as it currently treats my html files? -

Python __call__ special method practical example -