SHOW TABLE STATUS FROM `facturascript2017` LIKE 'fs_users';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'fs_users';
SHOW COLUMNS FROM `fs_users`;
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'fs_pages';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'fs_pages';
SHOW COLUMNS FROM `fs_pages`;
SELECT * FROM fs_pages WHERE name = 'admin_home';
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'empresa';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'empresa';
SHOW COLUMNS FROM `empresa`;
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'fs_vars';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'fs_vars';
SHOW COLUMNS FROM `fs_vars`;
SELECT * FROM fs_vars;
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'divisas';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'divisas';
SHOW COLUMNS FROM `divisas`;
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'fs_extensions2';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'fs_extensions2';
SHOW COLUMNS FROM `fs_extensions2`;
SELECT * FROM fs_extensions2 ORDER BY name ASC;
SHOW TABLE STATUS FROM `facturascript2017` LIKE 'multiempresa';
SELECT CONSTRAINT_NAME as name, CONSTRAINT_TYPE as type FROM information_schema.table_constraints WHERE table_schema = schema() AND table_name = 'multiempresa';
SHOW COLUMNS FROM `multiempresa`;
SELECT * FROM multiempresa WHERE aparcada = FALSE ORDER BY f_alta ASC;