I need a query that brings the names of the columns in a table that accept boolean
. Ex: In the clientes
table, I have the fields casapropria
(1 for yes, 0 for no), temfilhos
(1 for yes, 0 for no).
I need a query that brings the names of the columns in a table that accept boolean
. Ex: In the clientes
table, I have the fields casapropria
(1 for yes, 0 for no), temfilhos
(1 for yes, 0 for no).
SELECT column_name FROM information_schema.columns
WHERE table_name = 'clientes' AND data_type = 'bit'
Galera, I just got it. Follow if it is useful to you