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 7981043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:15:15+00:00 2026-06-04T10:15:15+00:00

String sqlQueryToCreateUndergraduateDetailsTable = create table if not exists + TABLE_NAME_GPA + ( + BaseColumns._ID

  • 0

String sqlQueryToCreateUndergraduateDetailsTable = “create table if not exists ” + TABLE_NAME_GPA + ” ( ” + BaseColumns._ID + ” integer primary key autoincrement, ”
+”COLUMN_NAME” + ” text not null, ” +”COLUMN_SURNAME” + ” text not null, ” +”COLUMN_DATE_OF_BIRTH”+ “text not null, +”COLUMN_ADDRESS” +”text not null,” +”COLUMN_EMAIL” +”text not null,” +”COLUMN_PHONE_NUMBER” +”text not null,” +”COLUMN_CITY” +”text not null,” +”COLUMN_PTYE_PAYMENT” +”text not null,” +”COLUMN_SHIPPING_TYPE” +”text not null,” +”COLUMN_CARD_NUMBER” + “text not null,” +”COLUMN_Password” +”text not null);”;

I’m trying to save to a database but it giving me an error saying…..error code = 1, msg = table Customer_details_table has no column named “Card Number”

  • 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-04T10:15:17+00:00Added an answer on June 4, 2026 at 10:15 am

    You cannot have spaces in table or column names.

    Change it to Card_Number or CardNumber and it should work.

    EDIT

    Looking at the error and what you said originally, I think you posted the wrong SQL.

    You showed us your table creation SQL, but you say “I’m trying to save to a database”… And the error message seems to indicate that it was looking for a column, not trying to create one.

    I think you need to look at your insert or update method SQL, where you probably typed it in manually instead of using the constant and accidentally put a space in there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

String query = CREATE TABLE \ EtherMap\.\ table_name\( feature_name (20)); Here feature_name is the
String product = Integer.toString(w); char[] original = String.toCharArray(product); This is the code I have
string s = <script type=text/javascript src=/stepcarousel.js></script> How can I get the data inside the
String linkPattern = \\[[A-Za-z_0-9]+\\]; String text = [build]/directory/[something]/[build]/; RegExp reg = RegExp.compile(linkPattern,g); MatchResult matchResult
String columnNames[] = {Time,MAP,ICP,CPP}; String dataValues[][]= new String [countery] table = new JTable( dataValues,
string[] lines = { textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text, textBox6.Text }; Random RandString =
string ouString = projectBox.Text.ToString(); string parentName = LDAP://OU=+ouString+,OU=Clients,OU=Clients,DC=domain,DC=net; DirectoryEntry parentEntry = new DirectoryEntry(parentName); DirectoryEntry
string emailfield=txtEmail.Text.ToString(); string url = http://localhost:3076/user/Authenticate-Users.aspx?email=+emailfield; I want to encrypt the querystring and then
string percentage = e.Row.Cells[7].Text; I am trying to do some dynamic stuff with my
string strLine;//not constant int index = 0; while(index < strLine.length()){//strLine is not modified}; how

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.