Class DataSourceTableColumn
Dokumentasi mendetail
getDataSourceColumn()
Mendapatkan kolom sumber data.
Pulang pergi
DataSourceColumn
— Kolom sumber data.
Otorisasi
Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa cakupan berikut:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
remove()
Menghapus kolom dari DataSourceTable
.
Otorisasi
Skrip yang menggunakan metode ini memerlukan otorisasi dengan satu atau beberapa cakupan berikut:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-02 UTC.
[null,null,["Terakhir diperbarui pada 2024-12-02 UTC."],[[["`DataSourceTableColumn` enables access and modification of existing columns within a `DataSourceTable` linked to a database."],["Use `DataSourceTable.addColumns(columnNames)` to add new columns to the table, instead of this class."],["It provides methods to retrieve the data source column (`getDataSourceColumn()`) and remove it from the table (`remove()`)."],["Both methods require authorization with specific scopes related to spreadsheet access."]]],["This class manages existing columns in a DataSourceTable, which is linked to a database. Key actions include retrieving a specific column using `getDataSourceColumn()` and removing a column entirely with `remove()`. Adding new columns is done through `DataSourceTable.addColumns(columnNames)`. The methods require authorization with specific scopes related to spreadsheet access: `https://www.googleapis.com/auth/spreadsheets.currentonly` and `https://www.googleapis.com/auth/spreadsheets`. It is used with data connected to a database.\n"]]