1

i am unable to add a Boolean value in Mysql how can i do so using java

i have to use QueryExecuter for this perpose

1 Answer 1

3

you mean, you can't use the boolean type? otherwise you could just convert true to 1 and false to 0 and just use an integer field...

Sign up to request clarification or add additional context in comments.

1 Comment

In MySQL BOOL is an alias for TINYINT, so it needs to be used just like integer would be. moon however seems to be asking about BIT type column.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.