关于asp+access 如何从数据库里读取部分数据

来源:百度知道 编辑:UC知道 时间:2024/07/04 14:37:54
比如从数据库 student表里的 content字段里的内容 <img src="http://test.com/1.jpg" alt="1" /><br /><br />
<img src="http://test.com/1.jpg" alt="2" /><br /><br />
<img src="http://test.com/1.jpg" alt="2" /><br /><br />
里截取第二个<br />字符以前的内容
如何实现?谢谢!

我觉得,第二个<br/>的位置和第一个<br/>是一样的,就多了一个<br/>.
dim pos1,pos2
pos1 = 0
pos2 = instr(Content,"<br/>")

Str=mid(Content,pos1,pos2)
response.Write Str&"<br/>"

a="<img src='http://test.com/1.jpg' alt='2' /><br/><br/>"
a=left(a,len(a)-5)
response.write a

zhidua=split(content,"<br>")
h=zhiduan(1)&zhiduan(2)
好象这样的,具体是什么我也记不清楚,你可以查找split的用法。