• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt on '#' in query.

 
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi All

i am trying to get data from excel sheet
in java using jdbcodbcdrivers,but i am interested
in getting data based on particular field in Excel sheet
not all the data ,so i simply used query as below


till here it works fine.

but my code gets stuck if excel sheet has data field like


So here i am getting SQl Exception as Syntax error in date in query expression 'Phone#'.
if i change in Excel sheet Phone# to Phone then data gets imported
so i need some info onto how can i overcome this problem
of using '#' in a query if any excel sheet field has such value
because i cant keep changing excel sheet fields.


Any help on the above will be great

Thanks in advance.


Dhwani:>Winning is not important but it is the only thing.
 
passwords must contain 14 characters, a number, punctuation, a small bird, a bit of cheese and a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic