$sql->columnName()
Returns the cleaned identifier based on the table and column name
$sql->columnName(string $table, string $column, bool $enforceQualified = false): string|null
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $tablerequired | string |
no default value | Table name |
| $columnrequired | string |
no default value | Column name |
| $enforceQualified | bool |
false
|
If true, a qualified identifier is returned in all cases |
Return types
stringornull
Identifier or null if the table or column is invalid
This method modifies the existing $sql object it is applied to and returns it again.