sql-redirect-value

sql-redirect-value is a compiled Lisp function in `sql.el'.

(sql-redirect-value SQLBUF COMMAND REGEXP &optional REGEXP-GROUPS)

Execute the SQL command and return part of result.

SQLBUF must be an active SQL interactive buffer. COMMAND should
be a string of commands accepted by the SQLi program. From the
output, the REGEXP is repeatedly matched and the list of
REGEXP-GROUPS submatches is returned. This behaves much like
M-x comint-redirect-results-list-from-process but instead of
returning a single submatch it returns a list of each submatch
for each match.