I have a dataset and my question is how can I read a specific value and set in a query to delete.
For example the query I would send to the AS400:
delete from xxx.yyy where data1 = dataset.tables[0].value
How can I achieve this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your example is close. You are grabbing the first table but not the row & then column value in that row. You can do this several ways.
Here’s a few samples:
Depending on what you are setting against you might need to convert/cast or use the ToString on your value.