1.无ResultType/ResultMap查询 先定义一个查询的存储过程: DELIMITER // CREATE PROCEDURE `select_user_by_id`( IN userId BIGINT, OUT userName VARCHAR(), OUT headImg BLOB, OUT createTime DATETIME ) BEGIN SELECT user_name, head_img, create_time INTO userName, headImg, cre…
Given two binary strings, return their sum (also a binary string). For example,a ="11"b ="1"Return"100". 思路很简单,先把短的字符串补齐,然后逐位相加. string addBinary(string a, string b) { int length = max(a.size(), b.size()); , ' '); '; while (l…