Function DatabaseDriver->alter_delete_table_field__sql
Definitions
sources/database.php
- Get SQL for deleting the specified field from the specified table.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$table_name | ID_TEXT | No | No | required parameter | N/A | N/A | The table name |
$name | ID_TEXT | No | No | required parameter | N/A | N/A | The field name |
Returns
- SQL query to run
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get SQL for deleting the specified field from the specified table.
*
* @param ID_TEXT $table_name The table name
* @param ID_TEXT $name The field name
* @return string SQL query to run
*/
public function alter_delete_table_field__sql(string $table_name, string $name) : string
* Get SQL for deleting the specified field from the specified table.
*
* @param ID_TEXT $table_name The table name
* @param ID_TEXT $name The field name
* @return string SQL query to run
*/
public function alter_delete_table_field__sql(string $table_name, string $name) : string