Delete table column
Deletes a column from the table
- Parameters
- Advanced call ?
Function DeleteTableColumn(Val Table, Val Name, Val Connection = "") Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Table | --table | String | ✔ | Table name |
| Name | --name | String | ✔ | Column name |
| Connection | --db | String, Arbitrary | ✖ | Existing connection or database path |
Returns
Map Of KeyAndValue - Result of query execution
| Parameter | Description |
|---|---|
| addin_mode | Manual selection of external component connection mode (for 1C): Isolated, NotIsolated |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Base = "/tmp/vnnmoosn.qqb.sqlite";
Table = "test";
Name = "new_col";
Result = OPI_SQLite.DeleteTableColumn(Table, Name, Base);
- Bash
- CMD/Bat
oint sqlite DeleteTableColumn \
--table "test" \
--name "new_col" \
--db "/tmp/v3fibjxn.cs0.sqlite"
oint sqlite DeleteTableColumn ^
--table "test" ^
--name "new_col" ^
--db "/tmp/v3fibjxn.cs0.sqlite"
Result
{
"result": true
}