Answers for "column with prefix in sql"

SQL
1

column with prefix in 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