Search This Blog

Showing posts with label remove. Show all posts
Showing posts with label remove. Show all posts

Tuesday, July 14, 2020

Mysql : replace special characters or any words in perticular column in UPDATE statement

Replace # symbol with empty in the given column.
 

SET SQL_SAFE_UPDATES = 0;

update table_name set col_name = replace (col_name,'#','');

Thursday, December 10, 2015

Add - Remove Column in MongoDB


// add new column and with default value
db.order.update({}, {$set: {"status": 'NEW'}},{multi:true})

//remove a column
db.order.update({}, {$unset: {"status": ''}},{multi:true})

Hit Counter


View My Stats