Quantcast
Channel: Questions in topic: "variables"
Viewing all articles
Browse latest Browse all 49

Need to use the contents of a field in a table select

$
0
0
Need to use the contents of a field as a table select. For example, my table (ATest) contains a field name (selection_id). The contents of the field contains a table name (selection_12345) that I need to query to obtain the contents of selection_12345. How can I pass the contents as a table name in another select? Example: Query --- `select * from ATest` Result --- selection_id (column) selection_12345 (column contents) I'm trying to do a `select * from selection_12345` by passing the selection_id contents as a variable.

Viewing all articles
Browse latest Browse all 49

Trending Articles