tags:

views:

30

answers:

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

+2  A: 

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...

xXx
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.
Mchl