Haidon Diogenes

Haidon Diogenes

  • 1.9k
  • 21
  • 4.1k

Query Sql Server in String

Jan 29 2016 10:56 AM
I want to assign the result of a SQL Server query to a variable. This query may or may not have more than one line, but only one column.
Example:
QUERY> SELECT NAME FROM NAMES
OUTPUT
 NAME
Michael
Michele
John
James
 
Variable > String names = ('Michael','Michele','John','James');

Answers (5)