请问关于c的具体应用场景有哪些?

2026-04-29 00:233阅读0评论SEO基础
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计185个文字,预计阅读时间需要1分钟。

请问关于c的具体应用场景有哪些?

我在测试图库访问存储过程时遇到一个错误,错误信息如下:Procedure or function 'getbug' expects parameter '@bugID', which was not supplied.。这是我在调用该存储过程的代码:

SqlCommand cmd=new SqlCommand(getbug, cn); cmd.Paramet

我试图访问存储过程,我收到一个错误,说:

Procedure or function ‘getbug’ expects parameter ‘@bugID’, which was not supplied.

这是我调用该过程的代码.

SqlCommand cmd = new SqlCommand("getbug", cn); cmd.Parameters.Add(new SqlParameter("bugID", bugID));

bugID设置为1089(并且类型为int)

我无法弄清楚为什么这不起作用.

请问关于c的具体应用场景有哪些?

试试这个

SqlCommand cmd = new SqlCommand("getbug", cn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@bugID", bugID));

本文共计185个文字,预计阅读时间需要1分钟。

请问关于c的具体应用场景有哪些?

我在测试图库访问存储过程时遇到一个错误,错误信息如下:Procedure or function 'getbug' expects parameter '@bugID', which was not supplied.。这是我在调用该存储过程的代码:

SqlCommand cmd=new SqlCommand(getbug, cn); cmd.Paramet

我试图访问存储过程,我收到一个错误,说:

Procedure or function ‘getbug’ expects parameter ‘@bugID’, which was not supplied.

这是我调用该过程的代码.

SqlCommand cmd = new SqlCommand("getbug", cn); cmd.Parameters.Add(new SqlParameter("bugID", bugID));

bugID设置为1089(并且类型为int)

我无法弄清楚为什么这不起作用.

请问关于c的具体应用场景有哪些?

试试这个

SqlCommand cmd = new SqlCommand("getbug", cn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@bugID", bugID));