自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

原创 postgrel 通过命令执行文件里的sql命令

psql -U username -d myDataBase -a -f init.sql多个sql以 分号 分隔update pt_order set stockin_qty = 1000 where id = 2131891;update pt_order set stockin_qty = 300 where id = 2236567;update pt_order set stockin_qty = 450 where id = 2238290;update pt_order s.

2021-08-12 18:04:20 290

原创 mongo 批量修改自增id,并保存数据到新表

db.getCollection('202105_order').find().forEach(function(x){x['_id']=hex_md5(String(x._id)); db.getCollection('202105_orders').insert(x)})

2021-08-09 13:28:31 473

原创 mongo 跨库跨表写数据(类似mysql的 insert into ... select)

db.getSiblingDB('source_db_name').getCollection('source_table_name').find().forEach(function(x){db.getSiblingDB('dest_db_name').getCollection('dest_table_name').insert(x);})

2021-08-09 13:27:18 645

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除