How do you assign the output of an SQL query to a Unix variable?

Tam ca

New member
How do you assign the output of an SQL query to a Unix variable?
Answer
In first command you assign output of date command in “var” variable! $() or “ means assign the output of command. And in the second command you print value of the “var” variable. Now for your SQL query.
 

Tìm kiếm

Back
Top