用mysql写程序。但是当我在 mysql 中调用此过程时出现错误。在数据集中没有得到正确的结果。我想在单个参数中传递所有这些电话号码。
my procedure
------------
CREATE PROCEDURE pro_dndtesting1(in p text)
begin
select fld_phonenumber from tbl_dndno_1 where fld_phonenumber in (p) and fld_opstype='A';
end
$$
am getting error when i call this procedure in mysql
calling statement
-----------------
call pro_dndtesting1("9942321400","9490582992","9490597318","9494363015","9703210545","9494304399","8790989211","9133733635","8706744769","8197401062","7382936474","9949290637","994961722")
error
------
Error Code: 1318. Incorrect number of arguments for PROCEDURE smsdnd.pro_dndtesting1; expected 1, got 2614
my aspx.vb code
----------------
For i = 0 To Ds.Tables(0).Rows.Count - 1
Dim dq As String = ""
excelphone = Ds.Tables(0).Rows(i).Item(0).ToString
TextBox2.Text = TextBox2.Text + """" & excelphone & """" & ","
Next
Dim n As Integer
n = TextBox2.Text.Length
TextBox2.Text = TextBox2.Text.Substring(0, TextBox2.Text.Length - 1)
Dim dnd As New DataSet1TableAdapters.pro_dndtesting1TableAdapter
Dim dnddt As DataSet1.pro_dndtesting1DataTable = dnd.GetData(TextBox2.Text)