SET SQLscript INSERT INTO DB_TO NAME_CHILD_CLASS CHILD_NAME_OUID CHILD

1
2
3
4
5
6
SET @SQLscript =
'INSERT INTO ' + @DB_TO + @NAME_CHILD_CLASS + ' ( ' + @CHILD_NAME_OUID +
', '+ @CHILD_ATTR_LIST + ' )
SELECT ABSTRACT_CLASS_TO.' + @PARENT_NAME_OUID + ', ' + @ATTR_LIST +
' FROM ' + @DB_FROM + @NAME_CHILD_CLASS + ' AS CHILD_CLASS_FROM
INNER JOIN ' + @DB_FROM + @ABSTRACT_CLASS + ' AS ABSTRACT_CLASS_FROM