Hi,
Can't figure out why this works:
But this does not, while the variable beholds the same string:
it gives this error:
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (unrecognized token: ":")
I have tried several possibilities following the B4X SQlite booklet, searching forum and web.
I tried this:
same error
then I only get, there is an error, without further hint
What must I do to get the string as variable accepted?
Thanks for any suggestion.
Can't figure out why this works:
B4X:
Dim RS3 As ResultSet = Main.SQL2.ExecQuery("SELECT Fullpath, Filename, Size, Date, Time FROM DblFiles WHERE Fullpath = 'C:\temp\{C}\'")
B4X:
Dim RS3 As ResultSet = Main.SQL2.ExecQuery("SELECT Fullpath, Filename, Size, Date, Time FROM DblFiles WHERE Fullpath = "&FilePath2)
it gives this error:
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (unrecognized token: ":")
I have tried several possibilities following the B4X SQlite booklet, searching forum and web.
I tried this:
B4X:
Dim RS3 As ResultSet = Main.SQL2.ExecQuery("SELECT Fullpath, Filename, Size, Date, Time FROM DblFiles WHERE Fullpath = '"& FilePath2 &"'")
B4X:
Dim RS3 As ResultSet = Main.SQL2.ExecQuery2("SELECT * FROM DblFiles WHERE Fullpath = ? ", Array As String (FilePath2))
What must I do to get the string as variable accepted?
Thanks for any suggestion.