ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


reference:metaprimarykeys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:metaprimarykeys [2015/08/12 01:37] mnewnhamreference:metaprimarykeys [2015/08/12 02:05] (current) – removed mnewnham
Line 1: Line 1:
-====== metaPrimaryKeys ====== 
-~~NOTOC~~ 
-<WRAP right box> 
-== Syntax == 
-    mixed metaPrimaryKeys( 
-        string $tableName, 
-        optional string $owner=false, 
-        ) 
-</WRAP> 
-===== Description ===== 
-The function ''metaPrimaryKeys()'' returns the column names in the primary key associated with a specific table as a numeric array . If there are no primary keys then the function returns false. 
-===== Optional Parameters ===== 
-==== $owner ==== 
-If specified, only returns primary keys associated with a table owned by that name. 
-===== Usage ===== 
-<code php> 
-/* 
- * Connection to DB2 sample database assumed 
- */ 
-$mpk = $db->metaPrimaryKeys('ACT'); 
-print_r($mpk); 
-/* 
- * Prints  
-Array 
-( 
-    [0] => ACTNO 
-) 
- 
- */ 
-</code> 
  
reference/metaprimarykeys.1439336279.txt.gz · Last modified: 2017/04/21 11:20 (external edit)