-2

When i insert one record then duplicate entry is generated that means total two same entries are display. My query for select statement is following: How to make distinct record???

Cursor cur = db.query("timer", null, null, null, null, null, null);
Siddharth
  • 9,349
  • 16
  • 86
  • 148
jack
  • 41
  • 10

1 Answers1

0

To make a distinct selection define a boolean Variable like :

private boolean Distinct = true;

then change your query to :

c = db.query(Distinct,DATABASE_TABLE,cols,null,null, null, null,
                    null,null);
Arash GM
  • 10,316
  • 6
  • 58
  • 76
  • this is the way that u can make a distinc selection if you have another problem with your code plz provide your java code,maybe we can help you – Arash GM Jan 01 '13 at 06:30