摘要:
select to_month_end(date) select extract(year/month/day from date) select lastday(date/timestamp) select (date-date) day(3)/month(3)/year(3) select months_between(date,date) select (time-time) hour(3... 阅读全文
摘要:
select regexp_similar('iuh()87%^&6888dkfj','.*[0-9]{4}') select regexp_instr('我的apple998','apple') select regexp_replace('我的apple998','.*[a-z]{5}','pp 阅读全文
摘要:
Teradata可用trim()函数去除字段中指定的字符,但前提是该字段有确定的模式,比如均为字母+数字+字母的模式‘abc258mnj’ 去除字母:select oreplace('258mnj4102',trim('258mnj4102','0123456789'),'') 去除数字:selec 阅读全文
摘要:
sql自关联,with as 阅读全文