Nov 5, 2004 #1 tomk01 ISP Joined Oct 18, 2004 Messages 69 Location US is there a way to create an autofill Primary key in SQL?
Nov 5, 2004 #2 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR For an AutoNum Primary Key: ALTER TABLE myTable ADD COLUMN myID COUNTER(1,1) CONSTRAINT myPK PRIMARY KEY; Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
For an AutoNum Primary Key: ALTER TABLE myTable ADD COLUMN myID COUNTER(1,1) CONSTRAINT myPK PRIMARY KEY; Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Nov 5, 2004 Thread starter #3 tomk01 ISP Joined Oct 18, 2004 Messages 69 Location US I got a syntax error. Upvote 0 Downvote
Nov 5, 2004 Thread starter #4 tomk01 ISP Joined Oct 18, 2004 Messages 69 Location US it is working now..... thank you Upvote 0 Downvote