Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to create an IDENTITY column

How to create an IDENTITY column

How to create an IDENTITY column

I am new to Pervasive and am using
Pervasive.SQL V8
Service Pack 1 Release - March 2003

I am trying add an Identity column, something that should be very easy but cannot seem to find how to do it.

I see in the HELP that there exists datatypes IDENTITY AND SMALLIDENTITY, but how does one select these when adding a column?  I have every datatype to select from (integer, float, char, etc. etc.) except the IDENTITY types.  They are not on the list and I cannot find how to make a column autoincremnt and be an Identity column.  

I would like to end up with an Identity column that will autoincrement so I can create a Primary Key index and, once that is done, create an index on a second field that I need indexed.  



RE: How to create an IDENTITY column

Hi Tim

The identity column is available from the drop down list when you create a new table.  It is not available for an existing table.  



RE: How to create an IDENTITY column

You can also use SQL statements to create the table. For example:
create table (ID identity default 0, name char(10), address char(10), city char(20), state char(2), zip char(5))

Certified Pervasive Developer
Certified Pervasive Technician
Custom VB and Btrieve development.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close