Auto Primary Keys in View

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartaju420
    New Member
    • Mar 2008
    • 2

    Auto Primary Keys in View

    Hello Friends,

    I've a table with no primary key. I want to create a View based on that table but I want a auto increamenting primary key in this View.

    Does anybody know how to do this?

    Plz help me..

    Thanks in advance...
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Originally posted by smartaju420
    Hello Friends,

    I've a table with no primary key. I want to create a View based on that table but I want a auto increamenting primary key in this View.

    Does anybody know how to do this?

    Plz help me..

    Thanks in advance...
    Two things you need.

    1. Here's the syntax to create view.

    2. Your query inside your view can include a dynamic row number. Here's how you do that.

    -- CK

    Comment

    Working...