1
It’s the following guys, I’m having a lot of trouble creating a search by date in my android sqlite database.
I wanted to search the tables by date, if possible, I wanted to make a condition that would detect the current date, and only update the table (adding certain values) not needing to create new tables.
From now on I thank greatly to those who give me a "light" on this question.
My table is this:
CREATE TABLE IF NOT EXISTS ENTRADA (
_id INTEGER NOT NULL
PRIMARY KEY AUTOINCREMENT,
DATA DATE NOT NULL DEFAULT CURRENT_DATE,
SALDO VARCHAR (20),
DEPOSITO VARCHAR (20),
ECONOMIAS VARCHAR (20),
SALARIODOMES VARCHAR (20),
What do you mean? You want to check the field
data
is equal to the current date?– user28595
Yes, I want to check if the date field is the current date (why CURRENT_DATE, alias, this table I created will always be created with the current date even? I’m sorry about the other question, but I started messing with sql a very short time ago).
– Rauny Henrique
Dai, wanted to create a function that checked by date (can be the current or other date), and summed the BALANCE fields.. alias, I wanted to create only one table by date(day)... hence the sum would refer to the date of the table (this will always be done updating the same table right? How do I do that too? kkkk, sorry for my lack of experience on the subject)
– Rauny Henrique