RE: Simple field replace...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try using the substring function in your sql statement

Substring('String',32);

Jack




-----Original Message-----
From: Tristan.Pretty@risk.sungard.com
[mailto:Tristan.Pretty@risk.sungard.com] 
Sent: Thursday, August 28, 2003 11:35 AM
To: php-db@lists.php.net
Subject:  Simple field replace...?


Hi there,
I need to take a field in my database, and remove the first 32
characters 
from each entry...
There are 100's, and I know there's gotta be an easy way... I've looked
up string replace, and it only appears to work one at a 
time...
Can anyone tell me how to make it accross the whole table...?

*********************************************************************
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***********************************************************************

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux