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
Post a Comment