Débutant - Execution d'un requete SQL : SHOW CREATE TABLE
Bonjour tout le monde,
Je suis actuellement en cours d'apprentissage du ZF et je me retrouve face à un problème. J'essaye d'executer la requete "SHOW CREATE TABLE" mais en vain :
Code:
1 2
| $tableCreate = $this->db->fetchCol("SHOW CREATE TABLE " . $table);
print_r($tableCreate); |
Et le résultat retourné :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Array ( [0] => Zend_Db_Profiler_Query Object ( [_query:protected] =>
connect [_queryType:protected] => 1 [_startedMicrotime:protected] =>
1209935181.2804 [_endedMicrotime:protected] => 1209935181.2827
[_boundParams:protected] => Array ( ) ) [1] => Zend_Db_Profiler_Query
Object ( [_query:protected] => SHOW TABLES [_queryType:protected] => 2
[_startedMicrotime:protected] => 1209935181.2841
[_endedMicrotime:protected] => 1209935181.2849 [_boundParams:protected]
=> Array ( ) ) [2] => Zend_Db_Profiler_Query Object ( [_query:protected] =>
SHOW CREATE TABLE wd_log [_queryType:protected] => 2
[_startedMicrotime:protected] => 1209935181.2862
[_endedMicrotime:protected] => 1209935181.2865 [_boundParams:protected]
=> Array ( ) ) [3] => Zend_Db_Profiler_Query Object ( [_query:protected] =>
SHOW CREATE TABLE wd_portofolio [_queryType:protected] => 2
[_startedMicrotime:protected] => 1209935181.2888
[_endedMicrotime:protected] => 1209935181.2891 [_boundParams:protected]
=> Array ( ) ) [4] => Zend_Db_Profiler_Query Object ( [_query:protected] =>
SHOW CREATE TABLE wd_user [_queryType:protected] => 2
[_startedMicrotime:protected] => 1209935181.2913
[_endedMicrotime:protected] => 1209935181.2917 [_boundParams:protected]
=> Array ( ) ) ) |
Comment pouvoir interpreter ce résultat ? Je n'y vois pas ma réponse (qui devrait etre du type CREATE TABLE `wd_log`...).
Merci d'avance,
Lionel B.