摘要:
在Tableadapter里面用'%'+@x+'%',应该是不行的,经过了测试,有两种解决办法,1种是:通过存储过程,参见:http://forums.asp.net/t/1390313.aspx1种是通过类似,WHERE CharIndex(@x,book_info.图书名称) > 0 的方法,参见:http://q.cnblogs.com/q/46529/ 阅读全文
摘要:
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... 阅读全文