I am making an iphone application in which there is use of database. I want that whenever user put his or her information, there should be unique id no for each user. But this id no should generate automatically.

How can I do this..please help me.

Thanks alot.