Re: [GENERAL] EXECUTE of a 'create table' string is not happening

2011-02-22 Thread Pavel Stehule
2011/2/22 Ralph Smith : > Hi, > > I'm passing a tablename and two columnnames into a function so that I can > SELECT Records in a FOR LOOP using 'fixed' field names. > Using the passed params I construct the create table command and then alter > the names of two columns. > > When I 'build' the func

Re: [GENERAL] EXECUTE of a 'create table' string is not happening

2011-02-22 Thread David Johnston
A little lost but the first thing that stands out is that you are attempting to create an actual table instead of a temporary table. Not sure if that difference is meaningful to the function but procedurally is there a reason to create the permanent table instead of a temporary one? If you do