【发布时间】:2017-09-29 13:32:27
【问题描述】:
这是我的 MySQL 存储过程。
create procedure InsertIntotblStudentProc (PStudentId VARCHAR(10), PStudentName VARCHAR(10))
begin
insert into tblStudent (StudentId, StudentName) values (PStudentId, PStudentName);
end;
这是我的 ASP 代码。
`MySqlCommand cmd = new MySqlCommand("InsertIntotblStudent", con);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddWithValue("PStudentId", TextBox1.Text);`
我在这里停下来,因为我想用两个参数调用过程,而我的另一个参数在 TextBox2 中。
帮我提建议。
【问题讨论】:
标签: c# mysql asp.net .net stored-procedures