For each table, you have the option to insert the following scripts:
Script |
Where it is inserted |
---|---|
Begin script |
Immediately before the table creation command (after the table title) |
End script |
Immediately after the table creation command |
These scripts can appear in database creation scripts and database modification scripts.
You can use the following variables in these scripts:
Variable |
Description |
---|---|
%COLNLIST% |
Column list |
%DATABASE% |
Code of the current PDM |
%DATE% |
Date of script generation |
%DBMSNAME% |
Code of the DBMS for the target database |
%NAMESCRIPT% |
Filename of script file |
%OWNER% |
Table owner |
%OWNERPREFIX% |
Owner prefix of table owner |
%PATHSCRIPT% |
Filename and path of script file |
%STARTCMD% |
Command that runs the script |
%TABLE% |
Name or code of current table (based on display preferences) |
%TCODE% |
Code of the current table |
%TLABL% |
Label of the current table |
%TNAME% |
Name of the current table |
%AUTHOR% |
Author of the current model |