Wiaanities Forum  
February 05, 2012, 02:54:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Send this topic  |  Print  
Author Topic: Use LIKE operator in VB .Net  (Read 3624 times)
ashoksamurai
WBC Members
Newbie
*
Posts: 1


Email
« on: June 05, 2009, 03:52:52 AM »
Reply with quoteQuote

Posted By Ashok

    Generally in MS Access we use LIKE operator with '*' character for easy search. But when working with VB 6.0 or VB .Net coding with ADO it will not work if we use '*' character. We should replace the '*' character into '%' character. Then only it will work.

    But, if we use '%' character directly in MS Access, it will not display any query results even the formed query is correct. There we should use '*' character. Only in VB 6.0 or VB .Net coding with ADO, '*' character should replace '%' character.

   Example
SELECT <column_list> FROM <table_name> WHERE <column_name> LIKE '% [character(s) to search]%' 

  
 
« Last Edit: June 05, 2009, 04:14:34 AM by ashoksamurai » Logged
Pages: [1]
  Reply  |  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC