首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

SQL兑现模糊字段查询,去空版

2012-08-03 
SQL实现模糊字段查询,去空版select * from UTUserwhere (username like %第一个textbox的值% and len(us

SQL实现模糊字段查询,去空版

select * from UTUserwhere (username like '%第一个textbox的值%' and len(username) > 0) or (password like '%第二个textbox的值%' and len(password) > 0) or  (lasttime like '%第三个textbox的值%' and len(lasttime) > 0) or  (usertype like '%第四个textbox的值%' and len(usertype) > 0)

热点排行
Bad Request.