Hi, I am trying to get password from Java Password Field and store it in a table in MySQL database. This password is a char and I do not know how to store char as a column type in MySQL. How do we store arrays in database?
You can convert it to a String (I believe using new String, but you may need also the character set)
Joined: Sep 08, 2007
That's what I did. Convert the char to a string with new String(char) and then store it as a varchar in database. Thanks David. But can we store it as an array (as object?). MySQL documentation shows the matching column type for byte but not for other arrays.