Using gsSQL Library

Custom functions used in Google Sheets for ease of use and improved functionality.

gsSQL Library

Add Library

Library Lookup

Review Permissions

Choose Account

Google Warning

Allow Access

Error: Error reading table data: AUTHORS
/**
 * @param {String} sqlStatement - e.g. "select * from authors"
 * @param {...any} parms - Optional ["tableName", range, "tableName2", range2,...][addTitle][bindVariables]
 * @returns {any[][]}
 * @customfunction
 */
function gsSQL(sqlStatement, ...parms) {
  return gsSqlLibrary.gsSQL(sqlStatement, ...parms);
}