Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8108015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:57:42+00:00 2026-06-06T00:57:42+00:00

Working with H2 I get this error when I try to write a row

  • 0

Working with H2 I get this error when I try to write a row with the first element being
ABC and the second being [C@26afa68a

Syntax error in SQL statement "INSERT INTO USER VALUES(ABC,[[*]C@F4D5BC9) " expected "), DEFAULT, NOT, EXISTS, SELECT, FROM"; SQL statement:INSERT INTO user VALUES(abc,[C@f4d5bc9) [42001-167]

I don’t know if there is a way to get H2 to accept Special Characters, but it would be great to know how to deal with this.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T00:57:43+00:00Added an answer on June 6, 2026 at 12:57 am

    You should use a PreparedStatement:

    PreparedStatement prep = conn.prepareStatement("INSERT INTO USER VALUES(?, ?)");
    prep.setString(1, "ABC");
    prep.setString(2, "[C@f4d5bc9");
    prep.executeUpdate();
    prep.close();
    

    Using a PreparedStatement is the preferred solution, because that way you don’t have to escape the data. If ABC and / and [C@f4d5bc9 are constants, you could use:

    Statement stat = conn.createStatement();
    stat.executeUpdate("INSERT INTO USER VALUES('ABC', '[C@f4d5bc9');
    stat.close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm learning mysql and have been trying to get this working, but an error
I am Working around MySQL error Deadlock found when trying to get lock; try
I am working on this code, and inside my first .java file I get
I've been trying to get this working for a few days now.. flabbergasted. I'm
I'm trying to get this working, and I can't find a good solution. I
I can't get this working for the life of me. Here is a snippet
Any way I can get this working? I have a block of code: <p><a
I'm trying to get this working and the query executes but nothing comes back.
I was able to get this working is SSRS 2008, but do to the
I can't seem to get this working, what should happen is when the user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.