|
-
Apr 10th, 2006, 07:33 AM
#1
Thread Starter
Addicted Member
[RESOLVED] create table , ms-access
Hello,
I want to create a table in ms-access database using SQL. Got an example while searching for it. For defining primary key constraint somthing like this has been used
CONSTRAINT sys_iu_primaryKey PRIMARY KEY(sys_u_id));
Somewhere else I found g_iu_primarykey. What is the difference between the two and when are they used?
Thank you.
Last edited by srisa; Apr 10th, 2006 at 09:13 AM.
Reason: Issue resolved
-
Apr 10th, 2006, 08:32 AM
#2
Fanatic Member
Re: create table , ms-access
If i remember correctly that is just a label; just a name for the constraint. You could call it whatever you want (i think). Most places have some type of naming convention, such as (TABLENAME_FIELDNAME_primaryKey). You might want to look up what is the common practice for naming your primary key constraint, and stick to that naming convention so that your database is well organized.
Using VB6 or VB.net 2008 with .net 3.5
"Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad
-
Apr 10th, 2006, 09:12 AM
#3
Thread Starter
Addicted Member
Re: create table , ms-access
Thank you. That really helped.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|