Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table without primary key

Former Member
0 Likes
2,589

can v create table without primary key???

can v activate it and access it??

can v create entries in 2 tat??

if yes,wat ll be the use???

12 REPLIES 12
Read only

Former Member
0 Likes
1,524

we cant create a table without the primary key

Read only

Former Member
0 Likes
1,524

A table cannot be created without a primanr key. ReaSON, Primary key identifies a unique record of the DB table and if there is no primary key there is no unique record. This is how it is defined in the RDBMS concepts

Read only

Former Member
0 Likes
1,524

hi,

we cant creat table wit primary key when we crate an table the sys will ask to specify an primary key.

ravi

Read only

former_member873340
Active Participant
0 Likes
1,524

You need to specify atleast one primary key in ur table....

u cannot activate it ...wil throw up a error saying

ZTEST_TABLE(specify a primary key)

Field of type CLNT not a key field. (Table is not client-specific)

Table ZTEST_TABLEmust be created in the database

Check on table ZTEST_TABLE resulted in errors

Read only

0 Likes
1,524

no i tried it ..it got activated..

Read only

0 Likes
1,524

Dude pls check it once again...

There is no such compulsion on creating p key u can create table without pkey.

sunny

Read only

Former Member
0 Likes
1,524

Hi Kota,

We should not and we can't create table woth out primary key. If u try to activate the table with out primary key then error will be triggered like primary key does not exist in the table like that.Please close the thread if u update with answer.

Hope this helps you, reply for queries, Shall post you the updates.

Regards.

Kumar. .

Read only

0 Likes
1,524

no i tried it ..it got activated.. have u tried it???

Read only

Former Member
0 Likes
1,524

initially it accepts...n take values.. but later .. if u want to relate this table with another u ned to havea primary key concept.. in this sisuation we create a primary keep ..

Read only

former_member873340
Active Participant
0 Likes
1,524

hey its not possible....

surely it will throw an error.....

i am saying u dont use adjust and activate

Read only

0 Likes
1,524

k

Read only

Former Member
0 Likes
1,524

hi,

We can't create table with out a table. If we try to create a table with out primary key, while checking syntax check it will through error that primary key is not defined because table is created in database. Primary key is used to uniquely identify the record. If we don't mention it then it will give error.