Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Error WHERE Clause
#3
Thanks.
What about the SQL language it uses?  I've tried T-Sql and Sqlite for casting a string as a datetime but can't seem to make it work.
Any thoughts on what I'm doing wrong here?

Macro Macro7
Code:
Copy      Help
out
str s =
;Date,Rep,Total
;7/19/2022 7:48:34 AM,10,600
;7/19/2022 8:18:56 AM,10,600
;7/19/2022 8:39:38 AM,20,600
s.setfile("C:\Temp\move2.csv")

Database dbt.Open(dbt.CsText("C:\Temp"))
ARRAY(str) at
dbt.QueryArr("SELECT cast(date as date) FROM move2.csv where rep=20" at)
out  at
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread
Database Error WHERE Clause - by ken gray - 07-19-2022, 02:48 PM
RE: Database Error WHERE Clause - by Gintaras - 07-19-2022, 03:14 PM
RE: Database Error WHERE Clause - by ken gray - 07-19-2022, 06:06 PM
RE: Database Error WHERE Clause - by Gintaras - 07-19-2022, 06:28 PM
RE: Database Error WHERE Clause - by ken gray - 07-19-2022, 07:59 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)