ylm's space

null

10 2006 档案

闭门造SQL
摘要: 用来判断一个内容类似为"55|66|9"的表字段是否含有指定的值(@ecid),比如@ecid的值为55,66或9时,查询都将返回该条记录:select * from eventswhere ecid=@ecid or ( substring( (ecid+'|'),0,(charindex('|',ecid+'|')) ) )= @ecid or( substring( (substring(...阅读全文

posted @ 2006-10-13 10:54 ylm㊣ 阅读(105) | 评论 (0) 编辑