you'll need to use PL/SQL to do that ...