JSF MySQL Enum type -
i have mysql database table, in table have enum column looks this:
enum('mmol/l','pmol/l','g/l','mmol/mol','cm','kg','st','l','mg/l','mg/mmol', 'micromol/l','ml/min','poƤng','%','mm hg','jdf enheter','ak-index')
i have textfield there user write in 1 of values above , can insert , take out data column out problem if user write string right.
but it's no guarantee user know enum values can write in field, anyway take out enum values can write database, or need hardcode it?
Comments
Post a Comment