存储过程的变量 如果使用C#的变量替代他?
存储过程ALTER PROCEDURE adapter(@id int,@title text output,@main text output)ASselect * from new where id=@id RETURNC#代码string id = Request.QueryString["id"]... 展开
其他答案
第一种写法adapter.Parameters.Add(new SqlParameter("@id",value值));第二种写法:adapter.Parameters.Add(new SqlParameter("@id",SqlDbType.Int));arapter.Parameters[0].Value=value值
2010-11-26 02:22
来自北京市
赞(0)点赞赞(0)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




