How to Delete Multiple ID

  • Hi Experts,

    How can i accomplish to delete a selected ID's using T-SQL.

    I have use this query DELETE FROM `table` WHERE id IN (264, 265).

    But if my parameters are selected, means it can be two or three based on the selected number rows by a user.

    How can u implement above query.

    Thanks.

  • jaquino012 (9/2/2015)


    Hi Experts,

    How can i accomplish to delete a selected ID's using T-SQL.

    I have use this query DELETE FROM `table` WHERE id IN (264, 265).

    But if my parameters are selected, means it can be two or three based on the selected number rows by a user.

    How can u implement above query.

    Thanks.

    How is the user performing the selection? Which client software are they using? What does the Id recordset look like? Comma-delimited string? For example '264,265'

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Hi,

    Thank you for you reply..

    Vb.net and datagridview control.

    The user will select a row by check box

    Interger

    Thanks

    Thanks

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply