On a Sybase database, can i do something like the following, which does not do anything but throw an error. I would like to avoid using variables. If it doesn't work without variables, is there an easy way to execute a statement for each row i get from a select?
execute ( '
select * from table
where ID = ''123456''
')