I'm trying to create a view in MySQL 5.6.24 and I need a BIT
column. The table I'm creating the view from does not have a BIT
column.
My create view
statement goes like this,
create view my_view as select id, version, description,
b'1' as active from my_table;
The view is created however the active
field is of type VARBINARY
.
I've also tried (1) as active
which produces an INT
. true as active
also creates an INT
.
Is there a way to create a BIT
column in a view like this?