Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th June 2007, 04:06 AM
105547111 Offline
Registered User
 
Join Date: Jul 2006
Posts: 164
phpmyadmin how do you find > and replace?

Hi,

I got a table in SQL. I want to do like a search function, but find and replace

Edit Delete 2007-05-12 08:39:41 CPU_USAGE 9 NULL
Edit Delete 2007-05-12 08:39:41 MAINMEM_USAGE 373808 NULL

Here is a example of the data. In phpmyadmin, I select the table and search.

I click CPU_USEAGE and then > 20

It lists them all.

Surely you must be able to do a query, and do this:

If CPU_USEAGE > 20 then replace 10

Can someone please tell me a query command.
Reply With Quote
  #2  
Old 28th June 2007, 01:52 PM
Tanoro Offline
Registered User
 
Join Date: Jun 2007
Posts: 4
I don't think there is any single query that can update and replace a given value throughout a whole database. You'll likely need some type of PHP scripting for that.
Reply With Quote
  #3  
Old 28th June 2007, 02:07 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Code:
update <TABLE_NAME> set CPU_USAGE = 10 where CPU_USAGE > 20;
Reply With Quote
Reply

Tags
>, phpmyadmin, replace

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to find and replace across multiple lines and do it recursively. reashlin Linux Chat 14 9th October 2008 02:42 PM
how to replace new rpm with an old one ecinar Using Fedora 4 6th April 2008 11:07 AM
How to replace LVM with another one johannlo Hardware & Laptops 0 3rd April 2008 08:21 AM
phpmyadmin - no phpmyadmin database doyler78 Servers & Networking 0 24th March 2006 12:13 PM


Current GMT-time: 08:54 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat