Collections functions
General functions
Render functions
Theme permission functions
Resource functions

columns_in()

Description

Returns a comma separated list of table columns from the given table. Optionally, will use an alias instead of the table name to prefix the columns. For inclusion in SQL to replace "select " which is not supported when using prepared statements.

Parameters

ColumnTypeDefaultDescription
$table string The source table
$alias string null Optionally, a different alias to use
$plugin string null Specifies that this table is defined in a plugin with the supplied name
$return_list bool false Set to true to return a list of column names. Note: the alias is ignored in this mode.

Return

string

This article was last updated 26th September 2022 13:35 Europe/London time based on the source file dated 14th September 2022 14:00 Europe/London time.