oracle - Primary key using a predefined format in sql -


i trying create table generate primary key automatically using predefined format. this:

customer_id    name   phone cust_1         abc    123 cust_2         def    456 

here customer_id auto generated primary key.

typically generate number , rest of fluff (cust_ in case) presentation.

if it's important can have computed column adds on prefix - make sure put indexes , unique constraints need be.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -