Delete variable file in SQLRPG
5 pts.
0
Q:
Delete variable file in SQLRPG
How can I use any variable file in an instruction SQL of DELETE in SQLRPG?
ASKED: Jun 4 2009  9:01 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
I think you mean to delete the file but I'm not sure.

In SQL to delete a table or files use the 'drop table' command
Statement = 'Drop table ' + tableName

To delete a row -- if that's what you want build the statement
Statement = 'Delete from ' + tableName + ' where ' + rules


Either would be a dynamic SQL statement.

Here is an example:

http://www.partner400.com/SQLIntro+Embed.pdf

Phil
Last Answered: Jun 4 2009  6:34 PM GMT by Philpl1jb   24610 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0