I am using MariaDB 10.1.37. I have a Test table with a field called delete
which is of type bit
+---------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+------------------+------+-----+---------+----------------+
| id | int(11) unsigned | NO | PRI | NULL | auto_increment |
| user_id | int(11) unsigned | NO | MUL | NULL | |
| email | varchar(255) | NO | | | |
| delete | bit(1) | NO | | b'0' | |
+---------+------------------+------+-----+---------+----------------+
As per https://mariadb.com/kb/en/library/bit/, delete+0 should show me teh value. But it does not.
select delete+0 from Test;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delete+0 from blacklist' at line 1```
Would appreciate if anyone can tell how I display the bit field type instead.