Re: Storing Logic In a Field (per row)
Posted by: Peter Brawley
Date: February 03, 2008 02:27AM

David,

Having inserted the criterion for 'Michael' into users ...

SELECT accessexpression INTO @expr
FROM users
WHERE name='Michael';

SET @sql = CONCAT( 'SELECT ', @expr );
PREPARE stmt FROM @sql;
EXECUTE stmt;
DROP PREPARE stmt;

PB
http://www.artfulsoftware.com

Options: ReplyQuote


Subject
Written By
Posted
Re: Storing Logic In a Field (per row)
February 03, 2008 02:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.