Jump to content

Invoice numbers


clay1

Recommended Posts

Easiest way would be to use the keyword DEFAULT for the invoice number.

 

INSERT INTO invoices (invoicenumber, invoice_time, customer_id)

VALUES (DEFAULT, current_timestamp, 222);

 

Otherwise you can use nextval('invoice_seq') where invoice_seq is the name of your sequence.

 

Link to comment
https://forums.phpfreaks.com/topic/177280-invoice-numbers/#findComment-937850
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.