thenrich
asked on
Modify SQL
Who can I modify the following SQL and add a parameter to modify the internalprops field so it's not copied directly?
SQL = "INSERT INTO cto_objects " & _
" ( project,iobjname,objname, " & _
" objtype,status,path," & _
" description,filename,objpa th, " & _
" internalprops,externalprop s,ctoprops ) " & _
" SELECT '000000',:newname ,:newExtName, " & _
" objtype, status,:newname ||'.IKM', " & _
" description,filename,objpa th, " & _
" internalprops,externalprop s,ctoprops " & _
" FROM cto_objects " & _
" WHERE ( cto_objects.project = :project ) AND " & _
" ( cto_objects.iobjname = :iobjname ) "
thx
TOM
SQL = "INSERT INTO cto_objects " & _
" ( project,iobjname,objname, " & _
" objtype,status,path," & _
" description,filename,objpa
" internalprops,externalprop
" SELECT '000000',:newname ,:newExtName, " & _
" objtype, status,:newname ||'.IKM', " & _
" description,filename,objpa
" internalprops,externalprop
" FROM cto_objects " & _
" WHERE ( cto_objects.project = :project ) AND " & _
" ( cto_objects.iobjname = :iobjname ) "
thx
TOM
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
SQL = "INSERT INTO cto_objects " & _
" ( project,iobjname,objname, " & _
" objtype,status,path," & _
" description,filename,objpa
" internalprops,externalprop
" SELECT '000000',:newname ,:newExtName, " & _
" objtype, status,:newname ||'.IKM', " & _
" description,filename,objpa
" replace(internalprops,'|' || :o_seq ||';','|' || :n_seq || ';'),externalprops,ctoprop
" FROM cto_objects " & _
" WHERE ( cto_objects.project = :project ) AND " & _
" ( cto_objects.iobjname = :iobjname ) "
Going to ask for this question to be deleted.