select count(*) from information_schema.COLUMNS where TABLE_SCHEMA='db_name' and table_name='tb_name'