Thread
:
How to select highest value and then create new object with that value +1?
View Single Post
#
2
(
permalink
)
12-06-2006, 01:51 PM
Musclebai
Posts: n/a
SQL 92
answer.
Re: How to select highest value and then create new object with that value +1?
[sql]
INSERT INTO Item
(IID )
VALUES (SELECT (IID +1)
FROM Item
WHERE IID = convert(int,(SELECT MAX(IID ) FROM Item))
)
[/sql]
Musclebai