Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

Start sample for a (My)-sql project

$
0
0
[quote="dagiayunus":2nipj9e9]Dear Sir, If we want auto generated invoice no. LIKE INV00001 , INV000002. and How to update clients balance according to invoices? should we use trigger? How? Regards Yunus.[/quote:2nipj9e9] For updating clients' balances, use triggers. For generating sequential numbers like "INV????", we better have another sequence table and use it. It is not safe to: (1) Take Max( INVNO ) and increment it or (2) do it in triggers Both may result in duplicate numbers in case of multi-user environment We will publish examples soon.

Viewing all articles
Browse latest Browse all 26212

Trending Articles