Android Database write error

Source: Internet
Author: User

============ Problem Description ============


The android server stored the username and password, resulting in an error in the SQL statement,
Create a database connection, save the user name and password jdbconnection sqlconn = new Jdbconnection (); Sqlconn.executeupdagte ("INSERT INTO ' user_test ' (' name ' , ' password ') VALUES ("+ Username +", "+ Password +") ");

The result myeclipse an error that you had an error in your SQL syntax
I tried to remove the single quotation mark and add it at the back, not to find it. Which great God can tell me the correct wording of the SQL statement? Does the table name have to be enclosed in single quotes? Thank you, little white.

============ Solution 1============


Uh.. I don't use an Apple computer. On the keyboard of the Windows computer is the key where the symbol ' ~ ' is located there is a character ' ', which is usually the left key of the number 1

Android Database write error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.