The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
is it possible to do this? thanks
|
#2
|
|||
|
|||
![]()
i know you can do instr(), such as:
DELETE FROM table WHERE INSTR(field, 'string') don't hold me to that, i might have the parameters backwards. anyhow, check out the manual at http://www.mysql.com/ |
#3
|
||||
|
||||
![]()
hmm i think this one:
[sql]DELETE FROM template WHERE template LIKE (prefix%)[/sql] but not 100% sure, use it on your own risk ![]() |
#4
|
|||
|
|||
![]()
i'm going to go out on a limb and say that Xenon is definitely correct...try it on a test table first though.
|
#5
|
|||
|
|||
![]()
I think you need quotes...or if you don't you probably should anyway:
[sql] DELETE FROM template WHERE template LIKE "prefix%" [/sql] For example: Code:
mysql> select userid,username from user where username like "filburt%"; +--------+----------+ | userid | username | +--------+----------+ | 1 | filburt1 | +--------+----------+ 1 row in set (0.00 sec) |
#6
|
||||
|
||||
![]()
yes filburt is right, quotes are needed
|
#7
|
||||
|
||||
![]()
Ahh OK - thanks everyone!
|
#8
|
||||
|
||||
![]()
Query with quotes don't work ppl
|
#9
|
||||
|
||||
![]()
use singelquotes
![]() |
#10
|
||||
|
||||
![]()
Still not working
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|