http://www.perlmonks.org?node_id=1019596


in reply to SQL queries from weird data

To me, the problem looks more like an issue with your database schema design.

If you normalised out the "other" column into its own key/value table then your problem would go away and your code would be nice and simple :)

Replies are listed 'Best First'.
Re^2: SQL queries from weird data
by Neighbour (Friar) on Feb 19, 2013 at 15:47 UTC
    Indeed. And you wouldn't be trying to execute data, which is something to be avoided.
Re^2: SQL queries from weird data
by Anonymous Monk on Feb 19, 2013 at 15:51 UTC
    I should have been more clear, this isn't our schema, these aren't our tables. This is generated by a third party product (VB.Net front end, Oracle back end) over which we have zero control. We're trying to provide more functionality via some scripting. We want to do things this product doesn't do.