tags:

views:

356

answers:

2

I have create a table in sqlite. there is two fields pk_categoryid,category_name. I want to enter only one value from user side. so how can I create sequence

+2  A: 

If you mean that you want the primary key to be autogenerated, then look at AUTOINCREMENT when creating your table:

Lasse V. Karlsen
A: 
create table Categories (pk_categoryid integer primary key autoincrement, category_name text);
My Other Me