i already have the id field which is auto increment primary key. I have another field that i want to be auto increment/autonumber but phpadmin/mysql doesn't allow? how else do i have a field with an autonumber?
MDanz 0 Junior Poster
Recommended Answers
Jump to PostYou can not have more than one auto-increment column in the same table in MySQL.
You could however do something like:
/* Table +-----------+------------+ | RowId (AI)| RowCount | +-----------+------------+ | 1 | 37 | +-----------+------------+ | 2 | 51 | +-----------+------------+ | 3 | 26 …
All 4 Replies
is_set 0 Newbie Poster
MDanz 0 Junior Poster
liamfriel 4 Junior Poster
mschroeder 251 Bestower of Knowledge Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.