Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SQL location for last created "order number"?


HerrJones

Recommended Posts

Posted

Can anyone point me to the location (table, etc) where the last created order number is stored?

 

Our new store currently generates order numbers starting at '1' which seems a bit silly towards the customer. We would like to reset it and have it start at 10,000 or so for the next placed order.

 

Best,

 

HJ

Posted
Can anyone point me to the location (table, etc) where the last created order number is stored?

 

Our new store currently generates order numbers starting at '1' which seems a bit silly towards the customer. We would like to reset it and have it start at 10,000 or so for the next placed order.

 

Best,

 

HJ

 

alter table orders auto_increment = 123456;

 

change it to your favorite number and run this in phpmyadmin

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
alter table orders auto_increment = 123456;

 

change it to your favorite number and run this in phpmyadmin

 

Thank you very much!

 

HJ

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...