Results 1 to 3 of 3

Thread: how to write a trigger when I call this store procedure

  1. #1
    Join Date
    Jul 2003
    Posts
    421

    how to write a trigger when I call this store procedure

    CREATE PROCEDURE dropStudent()
    BEGIN
    delete from PostDeferment where (Date(Current_Date)-Date(AccessTime))>=8;

    END

    I want select the UniversityN , and accessTime on PostDeferment and insert into my log table
    thank you!
    ________
    YAMAHA DRUMS
    Last edited by sql; 03-06-2011 at 02:08 AM.

  2. #2
    Join Date
    Sep 2002
    Posts
    5,938
    insert into log select UniversityN, accessTime, PostDeferment from ... where ...

  3. #3
    Join Date
    Jul 2003
    Posts
    421
    get it , Thank you!
    ________
    CANNABIS NEWS
    Last edited by sql; 03-06-2011 at 02:09 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •