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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:12:07+00:00 2026-05-23T02:12:07+00:00

OK something weird is going on and I can’t figure it out. I’m creating

  • 0

OK something weird is going on and I can’t figure it out. I’m creating some triggers, but I get strange errors when trying to create them on the live DB. A sample query is this:

delimiter |

CREATE TRIGGER debug_upd_before BEFORE UPDATE ON properties_availability
FOR EACH ROW BEGIN
    INSERT INTO debug_upd_before SET timestamp = NOW(), avID = OLD.avID, avPropertyID = OLD.avPropertyID, 
    avAvailableFrom = OLD.avAvailableFrom, avAvailableTo = OLD.avAvailableTo, avPrice = OLD.avPrice, 
    avIsAvailable = OLD.avIsAvailable;
END|

...

which executes fine localy. I’m using phpmyadmin, cause I don’t have any other access to the online DB. I know I don’t have full permissions and think that it might have something to do with that, but the error I get is:

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 |

not “you don’t have permissions to do that” or something like that. The same happens when I try to execute something simpler like:

delimiter |
select 1|
select 2

The error I get is the same and I can’t set a delimiter and the default doesn’t work for me cause I have to use after the queries inside the triggers. I tried other symbols as delimiters, but the result is the same. Any ideas as to what the problem is and how to avoid it? Some of the triggers execute more than one query, if that makes a difference…

Thanks!

  • 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-05-23T02:12:08+00:00Added an answer on May 23, 2026 at 2:12 am

    Try this statement (without delimiters) –

    CREATE TRIGGER debug_upd_before BEFORE UPDATE ON properties_availability
    FOR EACH ROW
    INSERT INTO debug_upd_before SET
      timestamp = now(),
      avID = OLD.avID,
      avPropertyID = OLD.avPropertyID,
      avAvailableFrom = OLD.avAvailableFrom,
      avAvailableTo = OLD.avAvailableTo,
      avPrice = OLD.avPrice,
      avIsAvailable = OLD.avIsAvailable;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've got something really weird going on here, and can't quite put my
I have something of a weird situation going on. I'm trying to build a
I must be missing something extremely obvious but I can't get this work properly.
I'm guessing I'm missing something, but I can't seem to get this statement to
I have something weird going on here. I just finished a site for a
Something really weird is going on with Xcode and an iPhone project I'm working
Sounds like a weird question, but say I have something like this: $.post( /myajax.php,
I have a very strange behavior in going on KnockoutJS 1.2.1 (Can't switch to
Something weird is going on with my tableview when changing data. I have something
I'm trying to build a Debian package, but I've got this weird pseudo-directory problem.

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.