실행하고 SnowQL 쿼리도
snowsql -u user -w cluster -d db -s public -a "account" -r admin -q "SELECT bucket FROM buckets GROUP BY bucket" | while read bucket_name_var ;
do
if [ ! -z "$bucket_name_var" ]
then
fi
done
이것은 출력을 생산-
* SnowSQL * v1.2.20
Type SQL statements or !help
+-------------+
| BUCKET
|-------------|
| 960 |
+-------------+
1 Row(s) produced. Time Elapsed: 0.927s
Goodbye!
어떻게 이것을 얻을 출력하는 대신-
960
내가 이것을 원하도록 출력 bucket_name_var
변수만 출력 값을(예를 들어 960)할 수있는 반복하기 때문에 오른쪽 지금은 모든 버전에서 눈송이를 안녕을 반복되니다.