I need a query in sql to get total columns in a table.Can anybody help?
It can be done using:-
SELECT COUNT(COLUMN_NAME) 'NO OF COLUMN' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Address'