0%

步骤

1、编辑

1
vi ~/.zshrc

2、末尾加上

1
export LANG=en_US.UTF-8

3、配置生效

1
source ~/.zshrc

需求

有如下数据(数据库中一个字段保存),需要提取其中手机号

1
2
3
4
54245537,13901771223
62265671 18601772000
13901616188
6962788855225588,13501966603
阅读全文 »

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

背景

某些特殊场景下,MySQL需要跨库进行查询。

MySQL可以像Oracle一样,通过”DBLink“实现跨库查询。

“DBLink”之所以用引号是因为mysql没有dblink的功能,而是通过 “FEDERATED” 来实现跨库操作的;


FEDERATED存储引擎访问在远程数据库的表中的数据,而不是本地的表。这个特性给某些开发应用带来了便利,你可以直接在本地构建一个federated表来连接远程数据表,配置好了之后本地表的数据可以直接跟远程数据表同步。实际上这个引擎里面是不真实存放数据的,所需要的数据都是连接到其他MySQL服务器上。

阅读全文 »