Hi! I've this 3 queries, that should send the same values. But i don't know why, if i use "?" i don't get the right value
Right value is 3
Log: 0
Log: 0
Right value is 3
Log: 0
B4X:
Dim SenderFilter As Object = Utils.sql.ExecQueryAsync("SQL","Select count(*) from scheduled where id = ?",Array as Int(1))
Log: 0
Log: 3
Log: 3
B4X:
Dim SenderFilter As Object = Utils.sql.ExecQueryAsync("SQL","Select count(*) from scheduled where id = ?",Array(1))
Log: 3
B4X:
Dim SenderFilter As Object = Utils.sql.ExecQueryAsync("SQL","Select count(*) from scheduled where id = "&1,null)
B4X:
Utils.sql.ExecQuerySingleResult2("Select count(*) from scheduled where id = "&idnotifica,Null)
Log: 0
B4X:
Utils.sql.ExecQuerySingleResult2("Select count(*) from scheduled where id = ?",array(idnotifica))
I don't understand some thing or it is wrong?