SQL Delete query

Results 1 to 5 of 5
  1. #1
    Member Renounce is offline
    MemberRank
    Jan 2009 Join Date
    63Posts

    SQL Delete query

    i am kinda stuck here.. i looked around on the internet for some tut's.. but i followed a few of them when the 3rd time failed "I Fail" i was done with it -.-
    What i am looking for is a query where u can search for the Index 300 that delete's the whole row so people dont got their items in their inventory or storage anymore

    as sample:

    Table. dbo.item
    Row. Index
    Item Needs to find: lets say.. 300 or something
    what's the correct query to delete all 300 indexes? (the whole row from PID to UpgrRate)

    to lazy to searchin through all 100000 rows and find all 300 indexes..

    Hope someone got a solution:)


  2. #2
    Account Upgraded | Title Enabled! TrueDarKZONE is offline
    MemberRank
    Nov 2006 Join Date
    Some Were In ALocation
    686Posts

    Re: [Help] SQL Delete query

    DELETE FROM [YOURDBNAME].[dbo].[Item]
    WHERE [Index] = '300'

  3. #3
    Member Renounce is offline
    MemberRank
    Jan 2009 Join Date
    63Posts

    Re: [Help] SQL Delete query

    thanks i will try it

  4. #4
    Account Upgraded | Title Enabled! Momo5000 is offline
    MemberRank
    Oct 2007 Join Date
    NarootuhLocation
    299Posts

    Re: [Help] SQL Delete query


  5. #5
    Infraction Banned hero322 is offline
    MemberRank
    Nov 2006 Join Date
    CanadaLocation
    1,036Posts

    Re: [Help] SQL Delete query

    im pretty sure this should work...

    <?php
    mssql_connect('localhost') or die('mist');
    mssql_select_db('kal_db') or die('kack');
    DELETE FROM [YOURDBNAME].[dbo].[Item];
    WHERE [Index] = '300';
    ?>
    </table></center>
    </body>
    </html>



Advertisement