Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:38.