you're saying there is more than one row that satisfies the WHERE clause?
if so, and you want to delete only one of them, you will have to specify which one, using something other than "first"
you see, "first" has meaning only in the context of a sequence, and the sequence can only be based on the values in some column, obviously some other column besides the Parameter column
ANSI SQL has no TOP functionality, neither in SELECT nor DELETE.
You'll have to use a cursor and do a DELETE WHERE CURRENT.
Something like
DECLARE c CURSOR FOR SELECT 1 FROM Parameters
WHERE Parameter = 'SportsType'
OPEN c;
FETCH c INTO :ival;
DELETE FROM Parameters WHERE CURRENT OF c;
CLOSE c;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.