Kent Multer
06-16-06, 09:26 AM
Hi folks --
According to my MySQL documentation, a MySQL database has a "data dictionary," a database called INFORMATION SCHEMA that contains information about the other databases. This could be used to do operations like the Miva MvREVEALSTRUCTURE, that allow a script to open a database "blind," and find out at run-time what fields it contains. I got this example from a manual:
SELECT table_name, table_type
FROM information_schema.tables
WHERE table_schema = 'db5'
ORDER BY table_name;
I tried to execute this in phpMyAdmin, but coudn't get it to work. I'm a newbie at SQL; can anyone tell me how to get access to these tables?
Thanks --
According to my MySQL documentation, a MySQL database has a "data dictionary," a database called INFORMATION SCHEMA that contains information about the other databases. This could be used to do operations like the Miva MvREVEALSTRUCTURE, that allow a script to open a database "blind," and find out at run-time what fields it contains. I got this example from a manual:
SELECT table_name, table_type
FROM information_schema.tables
WHERE table_schema = 'db5'
ORDER BY table_name;
I tried to execute this in phpMyAdmin, but coudn't get it to work. I'm a newbie at SQL; can anyone tell me how to get access to these tables?
Thanks --