Delete variable file in SQLRPG

5 pts.
Tags:
DELETE statement
SQL
SQL variables
SQLRPG
How can I use any variable file in an instruction SQL of DELETE in SQLRPG?
ASKED: June 4, 2009  9:01 AM
UPDATED: June 4, 2009  6:34 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following