ylm's space

null

导航

2006年10月13日 #

闭门造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㊣ 阅读(282) 评论(0) 推荐(0) 编辑