I have a few questions about the SQL lib Class_SQLiteDB.ahk
Any answers will be helpful, I also posted to the creator in the scripts forum
How would I go about storing a date in the database so later I can do queries from date A to date B
What data type do I use? How do I do this (obviously I can generate the current date using ahk formattime)
Also, how do I do a select query with a variable with in?
SQL := "SELECT Table4.title FROM Table4 WHERE Table4.yen = %variable%;"
SQL query with variable
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: SQL query with variable
I will answer your only AHK question. the others are SQL DB questions
Code: Select all
SQL := "SELECT Table4.title FROM Table4 WHERE Table4.yen = '" . variable . "';"
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
-
- Posts: 1472
- Joined: 05 May 2018, 12:23
Re: SQL query with variable
Thank you, that workedtank wrote:I will answer your only AHK question. the others are SQL DB questionsCode: Select all
SQL := "SELECT Table4.title FROM Table4 WHERE Table4.yen = '" . variable . "';"