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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:08:52+00:00 2026-05-25T11:08:52+00:00

IBM Informix Dynamic Server Version 11.50.FC6 I am trying to execute a simple stored

  • 0

IBM Informix Dynamic Server Version 11.50.FC6

I am trying to execute a simple stored procedure from within an update trigger. Together, they are used to update a field with the current timestamp when another field in the same row is updated.

Table sp_test:

id          (serial int, unique, not null, primary key)    
stat        (char(1), not null, default="A")
add_date    (date, not null, default today)
upd_date    (date, null)

The stored procedure code is:

create procedure upd_row_date_proc (cid int)
update sproc_trig_rec set upd_date = current where id = cid;
end procedure;

This executes fine and creates the routine, but the trigger I am trying to implement on updates is not working.

The trigger code is:

create trigger upd_row_date_trig
update of stat on sproc_trig_rec
after (execute procedure upd_row_date_proc(id));

I’ve tried a bunch of syntax variations, but cannot get it to work.

I usually get my error on the ( char of the 3rd line. Here’s the error code:

  201: A syntax error has occurred.
Error in line 3
Near character position 0

Does anyone know what I’m doing wrong in the syntax of the trigger? Could this type of updating be defined in the creation of the table, or do I need to accomplish it by doing it the way described above?

Thanks for any help

  • 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-25T11:08:52+00:00Added an answer on May 25, 2026 at 11:08 am

    This finally worked for me

    create trigger ken_trig
    update of stat on sproc_trig_rec
    referencing old as ken_pre_upd
    for each row (execute procedure ken_proc(ken_pre_upd.id));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

IBM Informix Dynamic Server Version 11.50.FC6 I was working on a small stored procedure
I'm having trouble creating this stored procedure on IBM Informix Dynamic Server Version 10.00.FC9
Server: IBM Informix Dynamic Server Version 11.70.FC1GE Client: IBM Data Server Driver package 5765-F41
Using IBM Informix Dynamic Server Version 10.00.FC9 The error I'm getting is: 1226: Decimal
Using IBM Informix Dynamic Server Version 10.00.FC9 I'm looking to set multiple field values
I am trying to connect to IBM Websphere MQ Server from IBM Websphere Application
I connected to the Informix server using RazorSQL, created a stored procedure and tested
I'm trying to connect to Informix database using sample code from https://www.ibm.com/developerworks/data/library/techarticle/dm-0510durity/ I'm using
I get the following exception when i try to execute specific stored procedure :
I try to connect to informix server 11.5 using using IBM.Data.Informix (located in C:\Program

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.