I have a database table:-
DB.ExecNonQuery ("CREATE TABLE Booking(Booth TEXT NOT NULL, BookingsDate TEXT NOT NULL, TimeOfDay TEXT Not Null, Visitor TEXT,Occupation TEXT, Company TEXT, Contact TEXT, Email TEXT, Inmate TEXT, Cell TEXT, Nomis TEXT, TypeOfBooking TEXT, TimeIn TEXT, TimeOut TEXT, S40E TEXT, Bookedby TEXT, DateBooked TEXT, Secure TEXT, CONSTRAINT BkKey UNIQUE (Booth, BookingsDate, TimeOfDay))")
and I need to delete all the records older than today -
I did -
Dim DelDate As String = DateTime.Now
DB.ExecNonQuery("DELETE * FROM Booking WHERE BookingsDate < DelDate")
I get the error -
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (near "*": syntax error)
Can someone tell me what I am doing wrong as I copied this directly from the tutorial.
Thank you