原来$concat只能操作字符串,不支持数字类型,解决办法是用$substr
$substr接受两个参数,一个是字符串的起点,一个是截取的字符串的长度。mongodb exception: $concat only supports strings, not NumberInt32解决办法
出现 exception: $concat only supports strings, not NumberInt32
原来$concat只能操作字符串,不支持数字类型,解决办法是用$substr
$substr接受两个参数,一个是字符串的起点,一个是截取的字符串的长度。