restrict duplicate entry,iphone
<p>HI All,</p>

<p>i am inserting , say name to sqlite, than showing it on tableview.</p>

<p>But i want say restrict user to insert duplicate name.</p>

<p>for first time  data gets inserted perfectly, but when i insert it on second time, it again get inserted, thats what i want to prevent.</p>

<p>HOw can i check if the value 'name' already exist in sqlite and show alert to tell user that this value already exist.</p>

<p>edited</p>

<p>i have an array abc , having few values., values in array i am adding from another view, now say if abc contains value "a1", now if i again inserting "a1", it should not except "a1", in a way how i can restrict an array to add duplicate value.</p>

<p>regards</p>
