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
Post a Comment