Benjamin Confino
Benjamin Confino

Reputation: 2364

how to access a mySQL enum field with Java ResultSet and PreparedStatement

Quick question what's the correct way to use ResultSet and PreparedStatement to access an ENUM field in MySQL?

Upvotes: 3

Views: 5982

Answers (1)

user85421
user85421

Reputation: 29680

never did but I would use String, see the documentation:
21.4.4.3. Java, JDBC and MySQL Types

Upvotes: 3

Related Questions