The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQl Syntax Help
Hi,
I wanted to set a certain text for a user profile filed if it is currently blank. So i want to try something like UPDATE userfield SET field5 = REPLACE(field5,'IF THIS IS BLANK','REPLACE WITH NEW TEXT'); I dont know what to use in "IF THIS IS BLANK" because if I leave that spot blank, nothing happened. So should I use NULL in that place or completely rewrite the line so it says not replace but set? thanks! |
#2
|
||||
|
||||
UPDATE userfield SET field5='Your Replacement Text' WHERE field5 = '';
|
#3
|
|||
|
|||
Thanks! Its great!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|