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

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -