sql - Showing the result of a query -


i'm trying build query numbers of rows have same data on column (my column estado).

 var db = database.open("mydb");  var selecteddata = db.query("select count (*) graficos estado='fechado'");   var data = db.queryvalue(selecteddata); 

but when try run gives following error:

compiler error message: cs1502: best overloaded method match 'webmatrix.data.database.queryvalue(string, params object[])' has invalid arguments  line 51:      var data = db.queryvalue(selecteddata); 

pass query directly queryvalue() method.

var data = db.queryvalue("select count (*) graficos estado='fechado'"); 

read this documentation more information on how use database.queryvalue() method.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -