retrieving row based on input

Posted by christine33990 on Stack Overflow See other posts from Stack Overflow or by christine33990
Published on 2010-04-04T02:09:19Z Indexed on 2010/04/04 2:13 UTC
Read the original article Hit count: 327

Filed under:
|
 public void RemoveTask(int index)
        {
            SQL = "DELETE FROM Task where (...) = " +index;

            dbConn.Open();

            dbCommand = new SqlCeCommand(SQL, dbConn);
            dbCommand.ExecuteNonQuery();

            dbConn.Close();
        }

What i want to do is to delete the record based on the index which specified the row number but I don't know what function or variable should be used ( note the blank ), i try something like rowNum but it does not work.

any help will be appreaciated

© Stack Overflow or respective owner

Related posts about sql

Related posts about c#