find first space in string (sql)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hopefully a simple question:
I am trying to return only the left hand charachters in a string before the
first space. In excel I can do this using LEFT(string,FIND(" ",string)-1). I
know I can use LEFT in SQL but is there a similar FIND function??

Thanks

DN
 
Dave Newing said:
Hopefully a simple question:
I am trying to return only the left hand charachters in a string before the
first space. In excel I can do this using LEFT(string,FIND(" ",string)-1). I
know I can use LEFT in SQL but is there a similar FIND function??

Thanks

DN

Assuming we're talking Access here, what you need is to look in help for the
function Instr.
 

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