摘要: 在Tableadapter里面用'%'+@x+'%',应该是不行的,经过了测试,有两种解决办法,1种是:通过存储过程,参见:http://forums.asp.net/t/1390313.aspx1种是通过类似,WHERE CharIndex(@x,book_info.图书名称) > 0 的方法,参见:http://q.cnblogs.com/q/46529/ 阅读全文
posted @ 2013-02-05 22:00 绝对菜鸟 阅读(2002) 评论(0) 推荐(0) 编辑
摘要: USE [books]GO/****** Object: StoredProcedure [dbo].[mybookssearch] Script Date: 2013/2/5SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER PROCEDURE [dbo].[mybookssearch]@x varCHAR(10),@t1 date,@t2 dateasBEGINSELECT stock_info.库存ID,stock_info.图书ID,book_info.图书名称,book_info.作者,book_info.出版时间,book... 阅读全文
posted @ 2013-02-05 13:21 绝对菜鸟 阅读(156) 评论(0) 推荐(0) 编辑