Home page  
Help >
Examples of Using ddlCreateTempTable()
Version 7.11
Examples of Using ddlCreateTempTable()
Examples of Using ddlCreateTempTable()

In C and C++:
   char *TempTableHandle = "TempTable1";
   /* Note that C will concatenate successive literals;    */
   /* we use that fact to make this example more readable. */
   char *DBDImage = "DATA BASE NAME IS TempTable1\n"
                    "TD \"Supplies\" AS Temp1 1000 Records TEMP\n"
                    "   \"Supplies\"./"CustomerID\" AS Temp1C1   X(6)\n"
                    "   \"Supplies\"./"CustName\"   AS TEmp1C2   X(20)\n";
 
   ddlCreateTempTable(ctl,"/",TempTableHandle,DBDImage);
 
   ... ...
 
   ddlDestroyTempTable(ctl,"/",TempTableHandle);
 
   ... ...


In C and C++ Using ddlCommand():
   char *Command = "CREATETEMPTABLE TempTable1 " 
                   "DATA BASE NAME IS TempTable1 / "
                   "TD \"Supplies\" AS Temp1 1000 Records TEMP / "
                   "   \"Supplies\"./"CustomerID\" AS Temp1C1   X(6) / "
                   "   \"Supplies\"./"CustName\"   AS TEmp1C2   X(20) / ";
 
   ddlCommand(ctl,Command);

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.