How to generate a new Guid in stored procedure?

前端 未结 5 791
时光说笑
时光说笑 2021-02-03 16:16

I currently have a stored procedure in which I want to insert new rows into a table.

insert into cars
(id, Make, Model)
v         


        
5条回答
  •  伪装坚强ぢ
    2021-02-03 17:01

    In the format of the question (spot the pedant!)

    insert into cars
      (id, Make, Model)
      values(NEWID(), "Ford", "Mustang")
    

提交回复
热议问题