Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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
 
PREVIOUS NEXT
Tagged: #column #prefix #sql
ADD COMMENT
Topic
Name
2+8 =