CREATE TABLE #t (id int IDENTITY(1,1) PRIMARY KEY,nums varchar(10))
INSERT INTO #t
SELECT ‘BH‘+cast(abs(CHECKSUM(NEWID())%100000) as varchar(8))
GO 10
时间: 2024-10-05 05:04:49
CREATE TABLE #t (id int IDENTITY(1,1) PRIMARY KEY,nums varchar(10))
INSERT INTO #t
SELECT ‘BH‘+cast(abs(CHECKSUM(NEWID())%100000) as varchar(8))
GO 10