I would like to know which index gets automatically created when we create primary key and unique key on Oracle table.
Assume that there is no index present on table.
Oracle will create a unique index in both cases. A primary key can not contain null values. A unique key can.
If you want to try and see what happens, information about indexes is available in the user_indexes view.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more