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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -