aquatsr Posted September 17, 2006 Share Posted September 17, 2006 So I have a table called books and I want to select all titles that start with a number (any number), how would I do such a thing? Link to comment Share on other sites More sharing options...
murfitUK Posted September 17, 2006 Share Posted September 17, 2006 You could try this:SELECT * FROM books WHERE title < 'A'This would give you titles starting with a number - but also blank entries as well. Link to comment Share on other sites More sharing options...
aquatsr Posted September 17, 2006 Author Share Posted September 17, 2006 You could try this:SELECT * FROM books WHERE title < 'A'This would give you titles starting with a number - but also blank entries as well.I'll try that, if it really does work it won't be a problem as I don't have any blank entries (yet).thx. Link to comment Share on other sites More sharing options...
bhavik_solanki Posted September 18, 2006 Share Posted September 18, 2006 Try this. This will return only records start with number. will not even blank.Select * from Books Where Title like '[0-9]%' Link to comment Share on other sites More sharing options...
aquatsr Posted September 18, 2006 Author Share Posted September 18, 2006 Try this. This will return only records start with number. will not even blank.Select * from Books Where Title like '[0-9]%'Thanks! I'll be sure to try that! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now