To get field names one would use the command:
select column_name from information_schema.columns where table_name='person';
My question is how would one also get the field types in a similar list?
To get field names one would use the command:
select column_name from information_schema.columns where table_name='person';
My question is how would one also get the field types in a similar list?
SELECT column_name, column_type # or data_type FROM information_schema.columns WHERE table_name='person';
select column_name,
column_type
from information_schema.columns
where table_name='person';
SELECT
column_name,
data_type
FROM information_schema.columns
WHERE table_name='person';