OledbCommand mcd=new OleDbCommand()

mcd.CommandText="insert into datatab(.....)value(....)+";SELECT SCOPE_IDENTITY()";

string  pid=mcd.ExecuteScalar().ToString();//添加配偶并返回刚添加的ID

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-11-02
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-03
  • 2021-08-20
  • 2021-05-26
  • 2022-03-06
相关资源
相似解决方案