table attribute add
With the table attribute add command, you can add a custom attribute to your table.
General format of the command:
ydb [global options...] table attribute add [options...] <table path>
global options: Global parameters.options: Parameters of the subcommand.table path: The table path.
Look up the description of the command to add a custom attribute:
ydb table attribute add --help
Parameters of the subcommand
| Name | Description |
|---|---|
--attribute |
The custom attribute in the <key>=<value> format. You can use --attribute many times to add multiple attributes by a single command. |
Examples
Add the custom attributes with the keys attr_key1, attr_key2 and the respective values attr_value1, attr_value2 to the my-table table:
ydb table attribute add --attribute attr_key1=attr_value1 --attribute attr_key2=attr_value2 my-table
Was the article helpful?
Previous