Answers for "primary key with prefix sql"

SQL
1

primary key with prefix sql

create table  #test
(
Id int identity(1,1),
Pid as 'PRE-'+REPLACE(STR(id, 7), SPACE(1), '0')
)
 
INSERT INTO #test DEFAULT VALUES
INSERT INTO #test DEFAULT VALUES
select *From #test
Posted by: Guest on July-07-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language