v5:dictionary:metaforeignkeys
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| v5:dictionary:metaforeignkeys [2021/11/08 17:44] – [metaForeignKeys] change default value for $tableName dregad | v5:dictionary:metaforeignkeys [2026/02/26 00:40] (current) – [Return Value] dregad | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| If specified, only returns foreign keys associated with a table owned by that name. Some drivers discard this parameter | If specified, only returns foreign keys associated with a table owned by that name. Some drivers discard this parameter | ||
| ==== $upper ==== | ==== $upper ==== | ||
| - | if specified, | + | if specified, the table and columns are returned in uppercase. |
| ==== $associative==== | ==== $associative==== | ||
| - | If specified, returns the result in associative mode. If ADODB_FETCH_MODE is already associative, | + | If specified, returns the result in associative mode. If ADODB_FETCH_MODE is already associative, |
| ===== Return Value ===== | ===== Return Value ===== | ||
| The method returns an array of data: | The method returns an array of data: | ||
| - | * | + | * The main key represents the foreign table that the key associated with. |
| - | * The values of the key are either a key=> | + | * The values of the key are either |
| + | * a key=> | ||
| + | * a numeric key with value being the same data represented as '' | ||
| + | ===== Explanation ===== | ||
| + | A table **// | ||
| + | ==== Associative Mode ==== | ||
| + | <code php> | ||
| + | [ | ||
| + | [' | ||
| + | [' | ||
| + | [' | ||
| + | ] | ||
| + | ] | ||
| + | </ | ||
| + | ==== Numeric Mode ==== | ||
| + | <code php> | ||
| + | [ | ||
| + | [' | ||
| + | [0] => ' | ||
| + | [1] => ' | ||
| + | ] | ||
| + | ] | ||
| + | </ | ||
| ===== Usage ===== | ===== Usage ===== | ||
| <code php> | <code php> | ||
v5/dictionary/metaforeignkeys.1636389847.txt.gz · Last modified: by dregad
