How to find the length of a particular column of a table in javascript?
问题 I am using sqlite database in my project. My table structure will be almost like this id cid values 1 1 value1 2 1 value2 3 1 value3 4 1 value4 5 2 value1 6 2 value2 7 3 value1 8 3 value2 9 3 value3 so I want all the values of the same cid ,how should I code it? My query: tx.executeSql("SELECT cid,value FROM table where cid="+cid_value, [], querySuccess, errorCB,cid_value); because,when I tried it the following manner, var details = results.rows.length; console.log("db test value:"+results