Variable table or column names.

Posted by Frank Computer on Stack Overflow See other posts from Stack Overflow or by Frank Computer
Published on 2010-06-17T05:07:55Z Indexed on 2010/06/17 5:13 UTC
Read the original article Hit count: 128

Filed under:
|

INFORMIX-SQL or any other SQL-based DB:

Suppose I have an app where depending on the value of some columns, example:

company.code  char(3) {abc}
company.brach char(2) {01}

Can I construct table name "abc01" for inclusion in SELECT * FROM abc01; ? In other words, a variable table name.. same question applies for column names.

© Stack Overflow or respective owner

Related posts about sql

Related posts about informix