View Single Post
Old 31.08.2006, 03:59   #1
srh
Архивный участник
 
Join Date: Aug 2005
Posts: 145
Default [share/sql] clean up account db

i never see here, if exists sorry.
this script delete newerused accounts from lin2db:
Code:
begin tran
delete from user_auth    where exists(select 1 from user_account where user_account.last_login is null and user_account.account=user_auth.account)
delete from user_account    where     user_account.last_login is null 
commit
backup your db before use any script
srh is offline