作者TonyQ (骨头)
看板Web_Design
标题Re: [问题] ASP一次删除多笔资料
时间Fri Apr 13 18:03:02 2007
※ 引述《dreamers210 (不要再叫我5楼了~~~)》之铭言:
: ※ 引述《sudada (淑打绿)》之铭言:
: DELID = SPLIT( REQUEST("DEL"), ", " )
: FOR I = 0 TO UBOUND(DELID)
: IF I > 0 AND I =< UBOUND(DELID) THEN
: DELOPTIONS = DELOPTIONS & " OR [id]="
: END IF
: DELOPTIONS = DELOPTIONS & DELID(I)
: NEXT
: CONN.EXECUTE "Delete From album Where [id]=" & DELOPTIONS
: 这样就可以了
DELID = SPLIT( REQUEST("DEL"), ", " )
FOR I = 0 TO UBOUND(DELID)
DELOPTIONS = DELOPTIONS & " OR [id]="
NEXT
CONN.EXECUTE "Delete From album Where 1=0 " & DELOPTIONS
--
这是偷懒的作法 XD
--
I am a person, and I am always thinking .
Thinking in love , Thinking in life ,
Thinking in why , Thinking in worth.
I can't believe any of what ,
I am just thinking then thinking ,
but worst of all , most of mine is thinking not actioning...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.134.27.68
1F:→ TonyQ:1=0 => false 可别写成 1=1 会很惨的 XD 04/13 18:03