I'm trying to set a variable to indicate how many records are going to be updated by a procedure.
If I try (simple example)
SET @COUNT = Select count(*) from tablename where last_name = 'Brown'
the system doesn't like it.
What would be the correct approach to set this variable?
Thank you.
Roger