Jump to content

if in data "-" sign sql select not found


kori

Recommended Posts

Hi!

if in data "-" sign sql select not found. -   

 select * from invoice where accnum='19-00/09598'  

in table 3 record contain '19-00/09598'  but found 0

the accnum field incoming data different formats but   save in the string field

suggestion of soultion ?

sorry my english :-)

Thanks

Link to comment
Share on other sites

check for unseen extra white spacing either end, as you may be searching for string  containing '19-00/09598' but it could be ' 19-00/09598', '19-00/09598 ' or ' 19-00/09598 ', if you did not trim any spaces before saving to database.

Edited by dsonesuk
Link to comment
Share on other sites

  • 5 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...