declare @roop int
Set @roop=1
while @roop<4
begin
  if Not Exists(Select * from 表 where 用户=@roop and 服务=1)
     Insert Into 表 values(@roop,1)
  if Not Exists(Select * from 表 where 用户=@roop and 服务=2)
     Insert Into 表 values(@roop,2)
  if Not Exists(Select * from 表 where 用户=@roop and 服务=3)
     Insert Into 表 values(@roop,3)
  if Not Exists(Select * from 表 where 用户=@roop and 服务=4)
     Insert Into 表 values(@roop,4)
  Set @roop=@roop+1end