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

  • Home
  • SEARCH
  • 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 8846633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:02:40+00:00 2026-06-14T12:02:40+00:00

I created a MySQL script that creates a Stored Procedure which Inserts a new

  • 0

I created a MySQL script that creates a Stored Procedure which Inserts a new row into a table given the IN parameters of the Stored Procedure. However, when we try to run the script, this error is shown:

ERROR 1064 (42000) at line 22: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the
right syntax to use near ” at line 3

This is basically the stored procedure in the script file:

CREATE PROCEDURE 'packagename'.`procedureName`
(IN param1 DATE, 
 IN param2 TIME, 
 IN param3 VARCHAR(45), 
 IN param4 VARCHAR(100))
BEGIN
    INSERT INTO packagename.table (`param1`, `param2`, `param3`, `param4`) 
    VALUES (param1, param2, param3, param4);
END;

Any ideas?

  • 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-14T12:02:43+00:00Added an answer on June 14, 2026 at 12:02 pm
    • change DELIMITER
    • use backtick instead of single quote in the package name
    • if the name of your table is table in packagename.table, escape it with backtick

    query,

    DELIMITER $$
    CREATE PROCEDURE `packagename`.`procedureName`
    (
          IN param1 DATE, 
          IN param2 TIME, 
          IN param3 VARCHAR(45), 
          IN param4 VARCHAR(100)
    )
    BEGIN
         INSERT INTO packagename.`table` (`param1`, `param2`, `param3`, `param4`) 
                VALUES (param1, param2, param3, param4);
    END $$
    DELIMITER ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to create a script that takes a mySQL table, and exports it
I created a script on a windows platform which connects to the mysql database
I have created mysql to delete table rows, which have lower DATETIME value than
I have created stored procedure in MySQL in Window-7. it run successfully on windows.
I have a script that stores content of random web pages into mysql database
I would like to create a ruby script that I can run mysql commands
I'm trying to create a script to normalize another table in MySQL. Below is
I am creating a SQL script file in MySQL. The script simply creates a
I have a script that I use to construct both the tables and stored
I am trying to access MySQL stored procedures from a perl script but I

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.