CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Trigger in SQL

  1. #1
    Join Date
    Aug 2000
    Location
    Manila Philippines
    Posts
    65

    Trigger in SQL


    CREATE TRIGGER ImGeniousL on [LeftGroup]
    for UPDATE
    as

    declare @vId varchar(20)


    select @vid = memberid from updated
    insert into leftgroup
    select me_memberid ,
    me_level, 0
    from member
    where me_uplineid = @vid


    Im having problem on the "updated"
    I just want to select the particular row
    that was updated








  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Trigger in SQL

    Updated does not exist, but both inserted and deleted are available in an update trigger

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured