Reputation: 9
I'm using Go connector taosRestful
to access TDengine. I want to check databases and tables, so I execute :
db.Exec("show databases")
But I got an error "wrong result".
Can't taosRestful execute this statement? Or is there another way to write it?
I Googled the question but got no answer
Upvotes: 0
Views: 34
Reputation: 762
You should use taos.Query() to execute a query command. taos.Exec() is for inserting.
Upvotes: 0