Menu
CAS Actions
Q&A Base
Data Sets
Français
English
Deutsch
Español
How can I keep only a specific set of columns and remove all others?
3 vues
Réponse
You can use the `keep` parameter, providing a list of the column names that you wish to retain in the table. All other columns will be dropped.
Did this answer help you?
0
0
alterTable
table
See technical action
Other questions about alterTable
What is the difference between the top-level `drop` parameter and the `drop` option within the `columns` parameter?
What does the `lifetime` parameter control?
What is the purpose of the `tableRedistUpPolicy` parameter?
How can I rename a table using this action?
Can I reorder the columns in my table?
Copyright © WeAreCAS 2023-2025
This site uses technical and analytical cookies to improve your experience.
Read more
.
Continue without accepting
I understand