怎么使用SQL语句,在VB的一个文本框中输入时,怎样让DATAGRID模糊查询出记录集呀

解决方案 »

  1.   

    accsee
    select * from table1 where fiel1 like 'a*'sql
    select * from table1 where fiel1 like 'a%'
      

  2.   

    sql="select * from tablename where filed %'" & Trim(txt.Text) & "'%"
      

  3.   

    sql="select * from tablename where filed '%" & Trim(txt.Text) & "%'"
      

  4.   

    rs1.open "select * from bedroom where 宿舍编号 like'%" & Text2.Text & "%'", conn, adOpenKeyset, adLockPessimistic我的是用ADO做的
      

  5.   

    招聘软件开发工程师:
    1、计算机及相关专业本科以上学历;具有两年以上软件开发经验。
    2、精通VB、VC等开发工具,熟悉SQL SERVER等大型数据库。
    3、能读懂流程图及相应详细设计框图。
    4、创新意识强,具有团队合作精神。
    联系人:李先生  0898-68582235  [email protected]
      

  6.   

    select * from tablename where filed  like '%" & Trim(txt.Text) & "%'
      

  7.   

    select * from table1 where fiel1 like 'a%'
      

  8.   

    sql="select * from tablename where filed %'" & Trim(txt.Text) & "'%"
      

  9.   

    不好意思
    应该是
    select * from tablename where filed  like '%" & Trim(txt.Text) & "%'