Delete table column
Deletes a column from the table
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
1C:Enterprise/OneScript code example
Base = "C:\Users\Administrator\AppData\Local\Temp\v8_B4C9_162.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 "C:\Users\Administrator\AppData\Local\Temp\0rltbbruj1o.sqlite"
oint sqlite DeleteTableColumn ^
--table "test" ^
--name "new_col" ^
--db "C:\Users\Administrator\AppData\Local\Temp\0rltbbruj1o.sqlite"
Result
{
"result": true
}