必须减去字符串的开头,因为第二个参数是长度和
INSTR
CREATE TABLE my_table (course_id int,col varchar2(200))
INSERT INTO my_table VALUES(1,'Course grade for <font color="#FF0000">Student Name</font>')
INSERT INTO my_table VALUES(1,'Course grade for <font color="#FF0000">abel </font>')
SELECT SUBSTR(col, instr(col, '>',1,1)+1, instr(col, '</',1,1) - instr(col, '>',1,1) - 1) FROM my_table where course_id=1
| SUBSTR(COL,INSTR(COL,'>',1,1)+1,INSTR(COL,'</',1,1)-INSTR(COL,'>',1,1)-1) |
| :------------------------------------------------------------------------ |
| Student Name |
| abel |
数据库(&L)&燃气轮机;不停摆弄
here