Deleting character info from all tables

Results 1 to 5 of 5
  1. #1
    Elite Member LastThief is offline
    Member +Rank
    Aug 2010 Join Date
    204Posts

    Deleting character info from all tables

    Hey guys how're you doing ? So yea that will be needed in my next SQL engine

    The theory is (DELETE FROM _Char WHERE DELETED = '1') but infact there is another tables which stores character info also what are those tables ? what are the relation ships between them ?

    Looking forward for answers :)

    Ciao,
    LastThief


  2. #2
    Sorcerer Supreme egsro is offline
    Member +Rank
    Aug 2010 Join Date
    277Posts

    Re: Deleting character info from all tables

    what about moving characters from one to anther !

  3. #3
    Elite Member IMOS is offline
    Member +Rank
    Dec 2007 Join Date
    125Posts

    Re: Deleting character info from all tables

    you can check the table dependencies.

  4. #4
    Sorcerer Supreme egsro is offline
    Member +Rank
    Aug 2010 Join Date
    277Posts

    Re: Deleting character info from all tables

    Ooh Here you are :-p
    use SRO_VT_SHARD
    delete from [dbo].[_InvCOS]
    delete from [dbo].[_CharCOS]
    delete from [dbo].[_CharTrijob]
    delete from [dbo].[_CharSkill]
    delete from [dbo].[_CharSkillMastery]
    delete from [dbo].[_Inventory]
    delete from [dbo].[_Char]

    have fun

  5. #5
    Elite Member megaman963 is offline
    Member +Rank
    Sep 2011 Join Date
    r3000 - MIPSLocation
    198Posts

    Re: Deleting character info from all tables

    Quote Originally Posted by LastThief View Post
    Hey guys how're you doing ? So yea that will be needed in my next SQL engine

    The theory is (DELETE FROM _Char WHERE DELETED = '1') but infact there is another tables which stores character info also what are those tables ? what are the relation ships between them ?

    Looking forward for answers :)

    Ciao,
    LastThief
    Check Foreign Key between Table _Char and other table ...
    and you will know what are these tables ..

    Good luck

    BE COOOOOOL !!



Advertisement