alibaba82
16 years agoSuper Contributor
groovy SQL Help
I have groovy call to a database with a simple select statement which give me some records. My statement looks something like this.
foobar = sql.rows("select colname from table ....)
printing out foobar shows
{colname=col1}, {colname=col2},.....
My question is, why is 'colname=' getting appended to each of my records. I am expect my list to have
{col1},{col2},....
What am I doing wrong.
Ali
foobar = sql.rows("select colname from table ....)
printing out foobar shows
{colname=col1}, {colname=col2},.....
My question is, why is 'colname=' getting appended to each of my records. I am expect my list to have
{col1},{col2},....
What am I doing wrong.
Ali