在Tableadapter里面用'%'+@x+'%',应该是不行的,经过了测试,

有两种解决办法,

1种是:通过存储过程,参见:

http://forums.asp.net/t/1390313.aspx

1种是通过类似,WHERE CharIndex(@x, book_info.图书名称) > 0 的方法,

参见:

http://q.cnblogs.com/q/46529/

相关文章:

  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案