Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!i2unix!irst!ferrario From: ferrario@irst.UUCP (Lorenza Ferrario) Newsgroups: comp.databases Subject: INGRES SELECT HELP Message-ID: <329@irst.UUCP> Date: 4 Dec 89 09:49:00 GMT Organization: I. R. S. T. , Trento - Italy Lines: 56 I'm trying to understand if it is possible to build an INGRES ESQL-C procedure to allow to create a "select" with variable columns, that is, passing the name of columns as program's variables (:name); they follow pieces of the code I wrote to solve this problem. ... exec sql begin declare section; char *vect[20], *trans, tmpcol[20]; ... exec sql end declare section; ... vect[0]="col1"; vect[1]="col2"; .... ... for(i=0; i