Re: ESQL Q
Posted in 1994
Kevin Zou — — source: Informix-list mailing list archive (1991-1998)
In article <2h6mfcINN7tl@emory.mathcs.emory.edu> mltsa!jgill@mlgtw.att.com writes:
>X-Informix-List-ID: <list.3354>
>
>
>I want to do the following...
>
>
>table_name = "table1"
>select param1 from (table_name)>
>
>Is there some way of doing this?
>
>
Here is a way to do it.
{
...
$char string[64];
sprintf(string,"select param1 from %s",table_name);
$prepare exec from $string;
$execute exec;
$free exec;
...
}
-- Kevin