format

Mysql 常用函数

半城伤御伤魂 提交于 2020-10-28 10:55:11
1、字符串函数 1) CONCAT (str1,str2,...):返回来自于参数连结的字符串。如果任何参数是NULL,返回NULL。可以有超过2个的参数。一个数字参数被变换为等价的字符串形式。 2)LENGTH(str):返回字符串str的长度。 3)LOCATE(substr,str):返回子串substr在字符串str第一个出现的位置,如果substr不是在str里面,返回0. 4)INSTR(str,substr):返回子串substr在字符串str中的第一个出现的位置。 5)LEFT(str,len):返回字符串str的最左面len个字符。 6)RIGHT(str,len):返回字符串str的最右面len个字符。 7)SUBSTRING(str,pos):从字符串str的起始位置pos返回一个子串。 8) TRIM (str):返回字符串str,所有前缀或后缀被删除了。 9)LTRIM(str):返回删除了其前置空格字符的字符串str。 10)RTRIM(str):返回删除了其拖后空格字符的字符串str。 11)REPLACE(str,from_str,to_str):返回字符串str,其字符串from_str的所有出现由字符串to_str代替。 12)REPEAT(str,count):返回由重复countTimes次的字符串str组成的一个字符串。如果count <=

use get-childitem -recurse in powershell but get each full path on a separate line (without extra directory lines)

流过昼夜 提交于 2020-08-23 09:22:29
问题 If I execute, e.g. Get-ChildItem *.ext -recurse the output consists of a series of Directory: entries followed by one entry for each each matching file. That's useful for many purposes, but today I'd like a result (analogous to the Unix find command) in which each matching file appears on a line by itself and shows its full relative path (and no other lines appear). I've searched a bit but haven't found a solution. 回答1: Get-Childitem by default outputs a view for format-table defined in a