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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -