skip to main | skip to sidebar

Harish Blog

Mysql query for Find and replace the data

To find a string in a certain field and replace it with another string:
update [table_name]
set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

 

Php Mysql

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • Ajax (4)
  • Html (1)
  • jQuery (1)
  • Linux (5)
  • Mysql (13)
  • Netezza (1)
  • Oracle and Php (2)
  • Others (4)
  • Php (15)
  • Shell scripts (1)
  • ಟೆಕ್ news (1)

Blog Archive

  • ►  2011 (1)
    • ►  January (1)
  • ►  2010 (2)
    • ►  October (1)
    • ►  March (1)
  • ►  2009 (11)
    • ►  December (3)
    • ►  October (7)
    • ►  February (1)
  • ▼  2008 (57)
    • ►  October (7)
    • ►  September (10)
    • ►  August (6)
    • ▼  July (4)
      • Mysql query for Find and replace the data
      • Regular Expression Patterns Examples
      • How to Set Environment Variable in .htaacess
      • New MYSQL database engine "Maria"
    • ►  June (4)
    • ►  May (5)
    • ►  April (11)
    • ►  March (2)
    • ►  February (7)
    • ►  January (1)
  • ►  2007 (4)
    • ►  December (3)
    • ►  March (1)
  • ►  2006 (4)
    • ►  November (1)
    • ►  October (3)