create table emp(eid int,age int,enm varchar,primary key(eid,enm)); Is this the correct way to create a pk of two attributes or we can write in someother way?
Kindly share your views here, thanks in advance.
Take some system name for the primary key constraint. you can use constraint <ok_name> primay key (col) clause in create table command or alter table add primary key (col); after creating the table .
Sign up for STechies
Ask Question From Our Experts
All the site contents are Copyright © www.stechies.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies. The site www.stechies.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity. Information used on this site is at your own risk.
The content on this site may not be reproduced or redistributed without the express written permission of
www.stechies.com or the content authors.