![]() |
Query for deleting templates which have a prefix "X"
is it possible to do this? thanks
|
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/ |
hmm i think this one:
[sql]DELETE FROM template WHERE template LIKE (prefix%)[/sql] but not 100% sure, use it on your own risk ;) |
i'm going to go out on a limb and say that Xenon is definitely correct...try it on a test table first though.
|
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%"; |
yes filburt is right, quotes are needed
|
Ahh OK - thanks everyone!
|
Query with quotes don't work ppl
|
use singelquotes :)
|
Still not working :( - it says the query is a success though
|
All times are GMT. The time now is 03:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|