Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Sasha http://nothing-less.net

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

Run a simple Update Query

In PHP.

$result = mysql_query("UPDATE example SET age='22' WHERE age='21'") 
or die(mysql_error());  

Search & Replace

update tablename set field = replace(field,'search_for_this','replace_with_this');
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS