Re: Groovy Better Approach to create comma separated string from Database Select Query

2016-07-16 Thread Bay Batu
>if(temp=="") { >temp=temp1; >}else{ > temp=temp+"\n"+temp1 >} > } > > > > -- > View this message in context: > http://groovy.329449.n5.nabble.com/Groovy-Better-Approach-to-create-comma-separated-string-from-Database-Select-Query-tp5734115.html > Sent from the Groovy Dev mailing list archive at Nabble.com.

Groovy Better Approach to create comma separated string from Database Select Query

2016-07-16 Thread GroovyBeginner
river.OracleDriver") sql.eachRow("select empid, empname FROM employee") { temp1=it.toRowResult().values().join(", ") if(temp=="") { temp=temp1; }else{ temp=temp+"\n"+temp1 } } -- View this message in conte