代码笔记20260113(一)
1、SQL应用场景1:判定某字段A中前2个字,每一个字都存在于字段B中。INSTR(B,SUBSTR(A,1,1)) > 0 and INSTR(B,SUBSTR(A,2,1)) > 0last_day(date_add('month',-1,date(cyrrent_date())))3、SQL应用场景3:substring_index函数。substring_index(str,delim,count)e.g:字段A格式为“1.1-基金”——substring_index(A,'-',1)——1.1datediff(datepart,startdate,enddate)datepart:year/month/day/hour..1、EXCEL应用场景1:textjoin用换行符做分割。TEXTJOIN(CHAR(10),TRUE,A1:A2)