seqToSQL function

Format a numeric series into an SQL value call