Template File: /var/www/html/wp-content/themes/livecloud2017/page-sidebar.php | Template Hierarchy

WP version: 4.8.2
PHP version 5.5.37-1+deprecated+dontuse+deb.sury.org~trusty+1

cdb_getTableKeys

function cdb_getTableKeys(pInputA)

Summary

This function takes a table name or TableID and returns a comma-separated list of the keys of that table.

Inputs

  • pTableName (String) – The table name.
  • pTableID (String) – The table ID.

*Only one of the two parameters is required.

Outputs

(String) – A comma-separated list of the keys in the table.

API Version

  • 0.3.0 – Introduced

Examples

# Table "clients", with ID "72a88e4f-c6ba-4fda-9381-2f0b0ca220bd" has the following keys:
#firstname, lastname, age, income

put cdb_getTableKeys("clients")
#outputs "firstname,lastname,age,income"

put cdb_getTableKeys(,"72a88e4f-c6ba-4fda-9381-2f0b0ca220bd")
#outputs "firstname,lastname,age,income"