Subject | Re: [firebird-support] Stored Procedure for Insert |
---|---|
Author | Martijn Tonies |
Post date | 2004-02-17T13:59:50Z |
Hi Marc.
I will have a break.
locking mechanism around the steps.
1 - lock
2 - do max
3 - maxvalue + 1
4 - insert into
5 - unlock
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
>>>>>>>>>Please don't "top post".(1,2,3,4,8,9,10, ...).... that's not good. But if a INSERT statement fails,
> My problem is: I don't want to have a break in the numbers
I will have a break.
>What's the problem with the breaks?
> That's why I wanted to use MAX.You can use MAX, but then you have to have some kind of
locking mechanism around the steps.
1 - lock
2 - do max
3 - maxvalue + 1
4 - insert into
5 - unlock
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com