存取及修改 DataSourceTable 中的現有資料欄。如要將資料欄新增至資料來源表格,請使用 DataSourceTable.addColumns(columnNames)。
請只將這個類別用於與資料庫連線的資料。
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
get | Data | 取得資料來源資料欄。 |
remove() | void | 從 Data 移除資料欄。 |
內容詳盡的說明文件
getDataSourceColumn()
取得資料來源資料欄。
回攻員
DataSourceColumn:資料來源欄。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets
remove()
從 DataSourceTable 移除資料欄。
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly -
https://www.googleapis.com/auth/spreadsheets