Friends, in my project I have a variable named bill_number; every time the PRINT bill button is clicked I want to increase the value of bill_number by one in the database. Please help me as soon as possible.
set @bill_number = @bill_numer+1;
I would advise to maintain a
table containing all the counts (like bill_number) and then use
SELECT FOR UPDATE to fetch and update the count on the events. It will increase the maintainability.