The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
i want drop attachment from 1 to 999
my vb Version 2.3.0
vb attachment 734.5 MB i want drop attachment from 1 to 999 the fourm complete two years and i wana to delete the attachment of the first year Is there any sql database command to do that ? this command allow me to delete the attachment for a certain period of time |
#2
|
||||
|
||||
Yes. Use this query:
[sql]DELETE from `attachment` where attachmentid < 999[/sql] |
#3
|
|||
|
|||
ok man
Thank You |
#4
|
|||
|
|||
hello
i try this DELETE from `attachment` where attachmentid < 999 but its not work corectly can i find another query ??????????????? |
#5
|
|||
|
|||
BACK UP FIRST and try:
[sql] DELETE FROM attachment ORDER BY dateline ASC LIMIT 999; [/sql] Untested but should delete the 999 oldest attachments. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|