The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What query can I run to clean out all my members User Notes. I was using this for one thing and am now going to use for something else and need all the info cleared.
Chris |
#2
|
|||
|
|||
![]()
[sql]DELETE FROM usernote[/sql]
If you are using a table prefix, then add this in front of 'usernote'. |
#3
|
|||
|
|||
![]()
Thank you - worked great!
Can I bother you for one last answer on this post from before. https://vborg.vbsupport.ru/showthread.php?t=78471 |
#4
|
|||
|
|||
![]()
I believe
[sql] TRUNCATE usernote [/sql] ...will also work, and possibly a great deal faster. However, that doesn't really matter if you're doing it just once. |
#5
|
|||
|
|||
![]()
Thanks filburt - this is just a one time deal - but to repeat asking questions I always write this stuff down so I dont have to bother people again -
Thanks |
#6
|
||||
|
||||
![]() Quote:
[sql]TRUNCATE TABLE usernote[/sql] ![]() |
#7
|
|||
|
|||
![]()
I think you are allowed to ommit the TABLE in the TRUNCATE statement, so both should be correct.
The difference between TRUNCATE and DELETE is that DELETE is deleting each row in the table seperate (slow but with respect to foreign key and other constraints), where TRUNCATE just reset the last row pointer (data is still there but there is no pointer to it anymore, is faster) |
#8
|
|||
|
|||
![]()
Thanks for all the help everyone!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|