Dynamic SQL using config tables
问题 I have a table which contains a list of dynamic SQL views that needs to be created SEEDING_TABLE ------------- KEYVALUE|VIEW_TO_BE_CREATED|FROMTABLE|NOOFCOLS 1|A|A1|3 2|B|B1|4 3|C|C1|5 The other table which contains the actual column names for the above seeding table ORDERCOLS_FORVIEW KEYVALUE|FROMTABLE|COLSAVAILABLE 1|A1|NUM1 1|A1|NUM2 1|A1|NUM3 2|B1|NUM1 2|B1|NUM2 2|B1|NUM3 2|B1|NUM4 3|C1|NUM1 3|C1|NUM2 3|C1|NUM3 3|C1|NUM4 3|C1|NUM5 Definition of the table FROMTABLEs as follows A1 ->