Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2011
    Posts
    15

    Red face Unanswered: Primary key generation in syabse

    Hi,

    Can someone share a trigger code snippet in sybase that does

    -->Auto increment of primary key using triggers.

    Any immediate help on this is higly appreciated.

    Regards,
    Jeevan.

  2. #2
    Join Date
    Jun 2007
    Location
    London
    Posts
    2,527
    Just use an identity column.
    I personally prefer natural keys anyway.
    It's well worth looking up the general principles behind KISS.

Tags for this Thread

Posting Permissions

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