SHOW COLUMNS displays information about the columns in a given table.
It also works for views
Syntax:
It also works for views
Syntax:
SHOW COLUMNS FROM TableName;
SHOW COLUMNS FROM tbl_name
[LIKE 'wild']
SHOW COLUMNS FROM purchaseentry;
Result:
OR
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE
TABLE_SCHEMA = 'nglpothysaccounts' AND TABLE_NAME = 'purchaseentry';
Result:
0 Comments