I have a query:
“SELECT … WHERE date_milisecs >= Clock1.getMilis AND date_milisecs <= Clock2.getMilis”
The problem is that the SQLite read only
"SELECT … WHERE date_milisecs >= Clock1.getMilis AND date_milisecs "
I dont now how to escape “<=” in query.
I try / and <, but no success.
Try \
, which is the escape character
Did you put “?” for each parameter?
data_milli >=?
data_mili<=?
and don’t need " quotes inside the block…
data_mili>=’ -----> data_mili>=
Sorry…
The first image I was testing a lot off and nothing.
Try with quotes, with no quotes, with ?
I think the problem occurs when I put the <, that is translate to html code.
A table, with 1 field of type integer , supplied with the Insert - Table - Column - Values block.
No Extension…
It worked…
Strange things…
After that I tested, all selects are ok
I dont now what happenned.
Maybe data in SQLite.
This query is ok.
Thank you so much
After testet a lot of function, like Rogerio_Rios and TimAi2 sent, the original query is ok now.
I don’t know if any data in SQLite or any problem in code/platform.
The code works:
The result by filter:
Thank you so much TimAi2 and Rogerio_Rios
Sorry… I don’t mention anyone yet.
One note: these are not the original blocks. are the blocks with “?” exclamation mark and without the quotes ’ . as I mentioned in my first post
In your original blocks there were no exclamations “?” of the parameters and there were quotes '.
Clarifying :This is your original blocks
Clarifying : These are the blocks with the fixes I suggested
So , clarifying for other users:
it is necessary to put “?” for each parameter of the WHERE clause in SQL SELECT Command.
Hugs
Off-topic :
@roBR , I have been working on a school management system since 2004.
Desktop
Web And App ( school principal app, teacher app and student app )
you are right.
thanks again.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.