标签:blog core start sel span bst logs next 字符串
str1=‘abc‘; str2=‘efg‘; concat(str1,str2)的结果:‘abcefg‘
str1=‘abcdefg‘ substr(str1,1,3)=‘abc‘ left(str1,3)=‘abc‘ right(str1,3)=‘efg‘
select case when str1 is null then ‘abcd‘ when str1=‘123‘ then ‘efgh‘ else ‘who‘ end from tablename;
SELECT CASE WHEN TRANS_REMARK IS NOT NULL THEN LEFT(TRANS_REMARK,6) ELSE NEXTVAL FOR UPPSEQ1,‘CORE‘ AS FUNDCHANNELCODE,TRANS_SEQNO,CONCAT(LEFT(TRANS_DATE,4),RIGHT(TRANS_REMARK,10)),TRANS_STATUS FROM OT_TRANS;
标签:blog core start sel span bst logs next 字符串
原文地址:http://www.cnblogs.com/fxust/p/7158127.html