Created
March 20, 2012 21:14
-
-
Save suissa/2141366 to your computer and use it in GitHub Desktop.
recuperando metadados das tabelas em mysql e com cakephp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT COLUMN_TYPE | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE TABLE_SCHEMA = 'youops' | |
AND TABLE_NAME = 'contas_correntes' | |
AND COLUMN_NAME = 'moeda' | |
//no cakephp | |
$obj = $this->schema(); | |
//ou no controller | |
$obj = $this->MODEL->schema(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment