Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql dump database tables only 
Sql :: error code 1241 mysql 
Sql :: how to compare two columns in sql server 
Sql :: store date time in mysql 
Sql :: add column mysql 
Sql :: create procedure sql 
Sql :: compare if is null sql 
Sql :: insert sql 
Sql :: import mysql dump 
Sql :: sqlite output query to csv 
Sql :: how to define a non primary composite key in sql 
Sql :: SQL FROM-Klausel 
Sql :: How to drop table in mysql ? 
Sql :: in sqlalchemy 
Sql :: casterar postgres 
Sql :: SQL Comments With Statements 
Sql :: 10000000000000000000 am to meters 
Sql :: like sql for second letter of the family name 
Sql :: mysql config address 
Sql :: trigger stock phpmyadmin 
Sql :: A good way of running a SQL query in JDBC using a parameterized statement 
Sql :: exel bulk insert 
Sql :: row_number equivalent MS Access for sequential id By Group (2) 
Sql :: no customers ordered 
Sql :: virtuoso sql query tutorial 
Sql :: create database like 
Sql :: oracle executing sqlplus commands and waiting for completion 
Sql :: delete record by id sql 
Sql :: how to add column in oracle 
Sql :: delete hangfire retries list 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =