Hi, I think the problem is not in your query, but in your INSERT or UPDATE statements. Example: sqlStr = new StringBuffer("UPDATE test SET "); sqlStr.append("first_name = '" + getFirstName() + "', "); sqlStr.append("last_name = '" + getLastName() + "' "); sqlStr.append(" where id = " + getId()); With the above code, the value in the database is stored as a ...