|

楼主 |
发表于 2014-6-11 20:25:34
|
显示全部楼层
本帖最后由 fbms 于 2014-6-11 20:30 编辑
3 A3 |( j4 u; G, j
) k2 t" M2 `5 o! D6 W我发现,还不错。就用0.05版medit 没有另外写程序,但是需要写sql语句。- --select * from Tma where definition like '%href="sound%'9 X6 L0 c# K$ T/ N% d! L
- a, w; Y x; {
- ; L E! y! J0 b/ O6 T# _
0 W w% N5 {5 f- select word , substr(definition , instr(definition ,'href="sound' )-3 ,
/ c; \* g, g4 b9 `" { - instr(definition, '"speaker.png" style="margin-bottom:-2px" />' ) - instr(definition ,'href="sound' )+50 ) definition
3 ] h3 N' q# z) R7 X& h - from Tma where definition like '%href="sound%'" }6 U; ^' w! l. g& M
- ' a2 K6 L- v* w8 F( K
-
# S o% [3 X0 O6 `/ J z5 O - ; Q; {% D0 K; W/ `% w0 t$ ~. ~1 z
- # h6 O! e/ b$ q$ ~7 H8 N( B
, g- J$ u) s* L4 y/ W- --update Tma set definition = replace( definition, 'sound://spx/', 'sound://spx' ) WHERE definition like '%href="sound%', _2 w) O: u% N+ G& m
- S. k V# {8 J
- --update Tma set definition = replace( definition, '/speaker.png', 'speaker.png' ) WHERE definition like '%speaker.png%'3 d+ }5 T$ x) {- A- c
- 2 y6 A5 P6 ^6 c P2 a
3 d9 }$ L: q2 V) I- R% F& l# R4 S- <a href="sound://spx00015.spx"><img border="0" height="20" width="20" src="speaker.png" style="margin-bottom:-2px" /></a>
' Y2 [' F# Q2 C0 ]8 _* ^
% N S8 i9 y+ c7 e9 o- select a.word , substr (a.definition ,0 ,instr ( a.definition ,'snd_us.png" style="margin-bottom:-4px" border="0" ></img></a>' ) +61 ) || ' ' || b.definition || ' '|| substr (a.definition ,instr ( a.definition ,'snd_us.png" style="margin-bottom:-4px" border="0" ></img></a>' ) +62, 100000 )
' V! ^( c) @) ^+ k/ B+ ?) N v - definition from XXXX3 a join mma b on a.word =b.word
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?免费注册
x
|