![]() |
|
Archives of the TeradataForumMessage Posted: Fri, 18 Jan 2013 @ 16:37:15 GMT
<-- Anonymously Posted: Friday, January 18, 2013 11:20 --> You can use a string expression to substitute the input text into the SQL as literal values:
SET sqlstmt = 'update employee set deptname='''||deptname||'''
where empid in ('||empid||')';
Then either:
CALL DBC.SysExecSQL(sqlstmt);
or
EXECUTE IMMEDIATE sqlstmt;
| ||||||||||||||||||||||||||||||||||||||||||||||||
| | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||
| Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
| Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||