This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

MySQL server
#4
Hello. Please tell me. How can I get the result of a query as a chill, so that a condition can be made to check the result. The query displays the result in tabular form
Code:
count = dbcon:execute('SELECT COUNT(period) FROM total_energy WHERE period = "day"')
row = count:fetch({}, 'a')
log(row)
Query Result
Code:
* table:
["COUNT(period)"]
  * string: 9
Reply


Messages In This Thread
MySQL server - by sashhun - 23.11.2021, 12:57
RE: MySQL server - by admin - 23.11.2021, 13:01
RE: MySQL server - by sashhun - 23.11.2021, 13:08
RE: MySQL result - by sashhun - 03.12.2021, 08:01
RE: MySQL server - by admin - 03.12.2021, 08:06
RE: MySQL server - by sashhun - 03.12.2021, 08:11

Forum Jump: