https://avatars.githubusercontent.com/u/6274534

ansible 小试

安装: 1 pip install ansible 添加配置文件: 1 2 3 4 5 6 配置文件查找顺序 * ANSIBLE_CONFIG (环境变量) * ansible.cfg (当前目录下) * .ansible.cfg (用户家目录下) * /etc/ansible/ansible.cfg * -i filename (手动传入配置文件)

MySQL 用法

创建视图 1 2 3 4 5 6 7 8 9 10 11 CREATEALGORITHM=UNDEFINEDDEFINER=`root`@`localhost`SQLSECURITYDEFINERVIEW`boc_vproduct_list`ASSELECT`boc_product`.*`,`boc_product_attr`.*FROM(`boc_product`LEFTJOIN`boc_product_attr`ON((`boc_product`.`id`=`boc_product_attr`.`pid`))) 创建过程 1 2 3 4 CREATEPROCEDURE`test_count_product`(OUTparam1serial)BEGINSELECTcount(*)INTOparam1FROMboc_dis_product;END 生成唯一随机数 1 2 3 4 5 6 7 8 9 10 11 # 非补 0 版本 SELECT FLOOR(100000 + RAND() * 899999) AS random_number FROM target_table WHERE "unique_field" NOT IN (SELECT unique_field FROM target_table) LIMIT 1 #