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 8127053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:23:03+00:00 2026-06-06T07:23:03+00:00

I most likely have a syntax issue (SQL command and error copied below) –

  • 0

I most likely have a syntax issue (SQL command and error copied below) – I am using MySQL v5.1.63 on Ubuntu 11 (dbName is the name of the database, the fields mentioned are in the USERS table with the appropriate data types/lengths). Any suggestions to troubleshoot this would be welcome.

use dbName;
DELIMITER //
CREATE PROCEDURE sp_insertTest
(
IN p_ID INT(11),
IN p_UserID VARCHAR(40),
IN p_Email VARCHAR(30)
)
BEGIN
INSERT INTO USERS
(
ID,
UserID,
Email
)
VALUES
(
p_ID,
p_UserID,
p_Email
)
END//
DELIMITER;

I am getting an error when I source the file containing the statement above:

ERROR 1064 (42000): 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 'END' at line 32
ERROR 1064 (42000): 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 'DELIMITER' at line 1

Thanks in advance.

  • 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-06T07:23:04+00:00Added an answer on June 6, 2026 at 7:23 am

    Try adding a space after END// and DELIMITER;, and also try a semicolon after the inserted values. The corrected procedure is:

    DELIMITER //
    CREATE PROCEDURE sp_insertTest
    (
        IN p_ID INT(11),
        IN p_UserID VARCHAR(40),
        IN p_Email VARCHAR(30)
    )
    BEGIN
    INSERT INTO USERS
    (
        ID,
        UserID,
        Email
    )
    VALUES
    (
        p_ID,
        p_UserID,
        p_Email
    );
    END //
    DELIMITER ;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have what is most likely a very simple question.. I am designing a
We have decided to work with the Insert Framework Here We'll most likely update
Is the most likely cause of an Error 28 - Out of stack space
I am new to Google Maps, so I have most likely missed something very
this may have been asked already but I cant really find it (most likely
I most likely have the same problem as in this question: Weird Chrome prototype/jQuery
Trying to pin down an issue that is most likely due to our web
This is most likely not an easy one but here is the situation: I
I know this is most-likely a simple question but when you restore a database
So at this moment (but most likely not for long) Reddit, Meetup, Fark, LinkedIn,

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.