Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create table from SELECT statement with and autoincrement field?

Status
Not open for further replies.

james0816

Programmer
Jan 9, 2003
295
US
Is that possible?
 
i have the following

create table `temptbl1` as (select yr, count(yr) from tbl1 where yr='2005'

I want to be able to add another field to this table as an autoincrement field.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top