In Sybase SQL, I would like to execute a String containing SQL.
I would expect something like this to work
declare @exec_str char(100) select @exec_
You need bracketing:
execute ( @exec_str )