Tired of having more account then characters? of people that created mutiple accounts but just use 1 or when people deleted there characters.
Here is a way to get rid of these
This query will give you a new table with account that have a character bounded to it.
Once you got this
Export the new table into a sql file
Empty you old account table
Import this new sql file into your account table
Your done
Similar code to clean up items and eudemons for delete character
Regards SweetCandy[PM]
Here is a way to get rid of these
Code:
SELECT DISTINCT account. * FROM account LEFT JOIN cq_user ON account.id = cq_user.account_id WHERE account.id = ( cq_user.account_id)
Once you got this
Export the new table into a sql file
Empty you old account table
Import this new sql file into your account table
Your done
Similar code to clean up items and eudemons for delete character
Code:
SELECT DISTINCT cq_item.* FROM cq_item LEFT JOIN cq_user ON cq_item.player_id = cq_user.id WHERE cq_item.player_id = ( cq_user.id) SELECT DISTINCT cq_eudemon. * FROM cq_eudemon LEFT JOIN cq_user ON cq_eudemon.player_id = cq_user.id WHERE cq_eudemon.player_id = ( cq_user.id)