>比如给定字符串 '1234', 而表中可能有记录项'1,12,123,1234,12345'要选出'1234'项</P>
>select * from ( <BR>select col_FT from table_FT <BR>where instr('12345',col_FT)=1 <BR>order by length(col_FT) desc) <BR>where rownum =1</P>| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |