访问和修改 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