use mastergoif exists (select * from sysdatabases where name ='MyJT')drop database MyJTcreate database MyJTOn(name='MyJT',filename='d:\JT\data\MyJT.mdf')log on(name='MyJT_log',filename='d:\JT\data\MyJT.ldf')gouse MyJTgocreate table Users --用户表( UserId int identity(1,1) primary key ,--编号 NickName varchar(20) not null unique,--昵称 LoginPwd varchar(20) not null,--密码 )select 'TX_'+Cast(UserId as Nvarchar(6)) as UserId from Users这样还是不行。。。ID为1开始增长。没有想要的效果