oracle 字串操作,oracle字串

來源:互聯網
上載者:User

oracle 字串操作,oracle字串

select upper('testmyname') from dual;  --轉換為大寫

select lower('testmyname') from dual; --轉換為小寫

select upper(substr('testmyname'),5) from dual; --截取myname,並轉換為大寫

selec instr('testmyname','or') from dual; --尋找字元'or',返回0

select tim('  hi  ) from dual; --返回hi

select rpad('smith',10,'月') as reft_star_smith,lpad('smith',10,'月') as ri
ght_star_smith from dual;          --左右倆側填充字元

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.