472,142 Members | 1,052 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

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...
Mar 5 '08 #1
1 1419
ck9663
2,878 Expert 2GB
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
Mar 5 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Geoff Cayzer | last post: by
6 posts views Thread by Sebastien | last post: by
18 posts views Thread by Thomas A. Anderson | last post: by
7 posts views Thread by Dave | last post: by
8 posts views Thread by Paul Hunter | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.