Skip to content

How to delete a set of rows from a DataTable based on some condition

Ravinder Reddy

Asked Dec 15, 2006, 10:49 PM EST1 answer
Share
LinkedInX

Hi all,

   I have a DataTable containing some rows in it. I want to delete a group of rows from that DataTable on some condition (ex: Emp_ID=1 and Dept_ID=2) how can I do this. Please help me.

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    The SQL query for delete is:
    Delete From [table name] Where [condition] And [condition]
    for ex:
    Delete From Employee Where Emp_ID=1 And Emp_Title=Engineer ;
    0