====== Hacking - SQL Injection - MySQL - Obtain Database Structure ====== ===== Getting User defined Tables ===== SELECT table_name FROM information_schema.tables WHERE table_schema = 'databasename' ---- ===== Getting Column Names ===== SELECT table_name, column_name FROM information_schema.columns WHERE table_name = 'tablename' ----
SELECT table_name FROM information_schema.tables WHERE table_schema = 'databasename'
SELECT table_name, column_name FROM information_schema.columns WHERE table_name = 'tablename'