Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8481519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:34:41+00:00 2026-06-10T19:34:41+00:00

Using mysql to write procedure. but am getting error when i call this procedure

  • 0

Using mysql to write procedure. but am getting error when i call this procedure in mysql.
am not geeting the correct result in dataset.i want to pass all these phone numbers in single argument.

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)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:34:42+00:00Added an answer on June 10, 2026 at 7:34 pm
    • Firstly – you should use comma-separated text, e.g. – ‘1112233,1115555,2223333’.
    • Secondly – use FIND_IN_SET function to filter records in table.

    For example:

    CREATE PROCEDURE pro_dndtesting1(IN p VARCHAR(255))
    BEGIN
      SELECT
        fld_phonenumber
      FROM
        tbl_dndno_1
      WHERE
        FIND_IN_SET(fld_phonenumber, p);
    END
    

    Run procedure:

    CALL pro_dndtesting1('1112233,1115555,2223333');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Normally when I want to query large result set using Mysql I write this
I want to implode a query result using , inside my mysql stored procedure.
I am using mysql. Now I want to write that query in which i
i am using mysql as back end in my android app but i want
I want to write a code to backup my Sql Server 2008 Database using
This seems like a simple request. But my query in not working and I'm
I am using mysql. I don't care how many groups get returned back but
We had an applicationg running using MySql. We found MySql was not suitable for
I need to write a query to retrieve values from two columns using mysql
I need to write a query to retrieve values from two columns using mysql

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.