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

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -