sql select question

  • Thread starter Thread starter Starbuck
  • Start date Start date
S

Starbuck

Hi

The sql command below does not seem to work in SQL Server, can someone show
where I am going wrong

Select * from users where ref like '*JOH*' order by ref

Thanks in advance
 
replace the * with % and you should be all set. I think the * is only for
microsoft access.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top