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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:19:58+00:00 2026-05-23T03:19:58+00:00

I have a very large file that creates triggers that I auto generated. However

  • 0

I have a very large file that creates triggers that I auto generated. However I’m not able to get passed line 3.

Php version 5.3.2
Mysql Version 14.14 Distrib 5.1.41

Here are the first few lines:

  1  delimiter $$
  2  -- CompanyTitleHolder
  3  -- Create INSERT event for CompanyTitleHolder
  4  CREATE OR REPLACE TRIGGER trigger_insert_CompanyTitleHolder AFTER INSERT ON CompanyTitleHolder 
  5  FOR EACH ROW
  6  BEGIN
  7
  8  IF(NEW.CompanyTitleHolderID <> '') OR (NEW.CompanyTitleHolderID IS NOT NULL) THEN
  9    CALL add_Audit (@UserName, "CompanyTitleHolder", "CompanyTitleHolderID", "--new record--", NEW.CompanyTitleHolderID);
 10  END IF;
 11 -- This goes on for quite a while
 ?? END;$$
 ?? delimiter ;

And this is the error:

/* SQL Error (1064): 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 'TRIGGER trigger_insert_CompanyTitleHolder AFTER INSERT ON CompanyTitleHolder  F' at line 3 */

I’m trying to do an audit table using this method and code as my base

  • 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-23T03:19:58+00:00Added an answer on May 23, 2026 at 3:19 am

    MySQL doesn’t support OR REPLACE: http://dev.mysql.com/doc/refman/5.6/en/create-trigger.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large ARFF file with data that looks something like this: 555,2011-03-13
I have a very painful slow script that gets lots of data from MySQL
I inherited a very large subsystem from a programmer that left the company and
I could have sworn that I seen a while back that the max image
There might be some very simple answer to this, but i am really stuck
I'm trying to load data from a CSV file into a MySQL database, and
Not sure if this really belongs here, so please move it if it doesn't.
I'm very new to Scala, but from what I've read it seems the ideal
I'm working on a Python script to go through two files - one containing
I am creating quite a complex web application. I like to use php to

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.