1
I’m developing an application on android but do not know how to prevent the user register two equal times.
Bench:
String sql4 ="CREATE TABLE "+TABELAAGE+"("
+IDAGE+ " integer primary key autoincrement,"
+NOMECLIAGE+ " text not null,"
+DATA+ " text not null,"
+HORA+ " text not null,"
+SERVICO+ " text not null,"
+VALOR+ " text not null"
+")";
I cannot let the user schedule two equal times on the same date
Hello! You added the DATA field as the right text? how do you save this field? What is the format? You do not want to allow an identical date?
– Thiago Luiz Domacoski
Yes, there may be two identical dates but not two identical times on the same date
– Gabriel Teobaldo