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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting an Auto Increment Field

Status
Not open for further replies.

vicky666

Programmer
Feb 13, 2003
22
0
0
GB
I would like to create a unique key with the format G0200000 (G02 Must not be changed) to be incremented automatically (G0200001, G0200002, etc) when a new record is created. I know this problem was posted earlier but the result wouldnt work on my mysql command prompt.The attribut to be incremented is call BookingId and The table is called Booking. Can anyone please help? thanks

Vicky
 
>> but the result wouldnt work on my mysql command prompt. >>

Why?

Besides, there is no (practical) alternative to doing it when selecting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top