Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Use SQL REPLACE function in UPDATE SET
Use SQL REPLACE function in UPDATE SET [message #2917] Sat, 17 March 2012 02:31 Go to previous message
kong is currently offline  kong
Messages: 90
Registered: December 2011
Member
Wonder how to build and execute a SQL statement like this within the Radicore framework:

UPDATE msg SET author=REPLACE(author,'_',' ') WHERE id>100

Tried using updateSelection($where, $replace),
with $replace = "author='REPLACE(author,'_',' ')'".

However, that will result in the author column being populated with 'REPLACE'.

If this cannot be done within the current framework, we can iterate through each row and update each row separately, or is there a simpler / more efficient way?
 
Read Message
Read Message
Previous Topic: Field Alignment and formatting
Next Topic: Email attachments
Goto Forum:
  


Current Time: Thu Nov 28 01:27:56 EST 2024

Total time taken to generate the page: 0.00902 seconds