| Subject | Re: [firebird-support] Stored Procedure for Insert | 
|---|---|
| Author | Martijn Tonies | 
| Post date | 2004-02-17T13:34:58Z | 
Hi Marc,
the new number back.
then: No. Multi-user/contextswitching problems.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com
            > One question: If I write a stored procedure which gets the maximum valueof a field and adds 1 (or if it is null set it to 1), do a insert and give
the new number back.
>If you mean by "getting the max value" is doing a SELECT MAX(...)
> Would that work if more users would use that stored procedure?
then: No. Multi-user/contextswitching problems.
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com