/ LJCPHPCodeDoc / LJCDBAccessLib / LJCDbAccess / LoadTableSchema


Parameters
$dbName - The Database name.
$tableName - The Table name.

Returns

A DbColumns collection of column definitions.

Syntax

PHP
public function LoadTableSchema(string $dbName, string $tableName)

Returns the Table Schema DbColumns collection.

Example

PHP
 $webCommonPath = "c:/inetpub/wwwroot/LJCPHPCommon";
 require_once "$webCommonPath/LJCDBAccessLib.php";
 
 // See constructor for how to create $connectionValues.
 $dbAccess = new LJCDbAccess($connectionValues);
 
 $tableName = "TableName";
 $dbColumns = $dbAccess->LoadTableSchema($database, $tableName);
 if (count($dbColumns) > 0)
 {
   // Use DbColumns data definitions.
 }

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.