My SQLite table looks like this.
---------------------------
|_id|str A |str B |str C |
|---------------------------|
|1 |cat |blahty |lio |
|---------------------------|
|2 |dog |blahty |timmy |
|---------------------------|
|3 |cow |blahty |lio |
|---------------------------|
|4 |bat |blah |timmy |
|---------------------------|
|5 |tuna |blahty |timmy |
|---------------------------|
|6 |cat |bla |lio |
|---------------------------|
|7 |dog |blahty |timmy |
|---------------------------|
|8 |cow |bla |lion |
|---------------------------|
|9 |bat |blahty |timmy |
|---------------------------|
|10 |tuna |blahty |lio |
---------------------------
An I have an Array {new str A, new str B, new srt C} from which I want to insert values to respective columns. I want to do this only if new str A don’t match any entry in column str A. And I also want to str A unique by removing multiple occurances of str A. How do I accomplish this via SQLite?
You should be able to use INSERT or IGNORE : http://www.sqlite.org/lang_conflict.html when inserting into the table?
I think you would also have to make Col A a unique identifier in the table