如何判断一个表中,是否存在一个ID,如果存在不处理,如果不存在,插入值

if not  exists(select * from table where id=@id) 
  insert into table(id)values(@id)

如何判断一个表中,是否存在一个ID,如果存在不处理,如果不存在,插入值

if not  exists(select * from table where id=@id) 
  insert into table(id)values(@id)

相关文章:

  • 2022-02-02
  • 2022-02-14
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案