How to Create a Table

  1. How to Create  a Table

The MySQL database is a relational database and stores its values in tables.  After creating a database, now the next step is to create tables where we are going to insert our values as well as retrieve our data.

The syntax for creating a table includes:

Don't use plagiarized sources. Get Your Custom Essay on
How to Create a Table
Just from $13/Page
Order Essay

CREATE TABLE student (id INT, name VARCHAR (255))


From the previous section, we have created a database Student now, we are going to create table marks

CREATE TABLE marks (id INT, name VARCHAR (255))

  1. CRUD  operations 
  2. Create

Creating in CRUD operation simply means inserting data into your MySQL database.

To insert data into the MySQL table, we are going to use the method connection.commit () in order to get the changes.  Now, let’s insert sample marks our marks table:

query = “insert into marks (Student_name, marks) values (%s, %s)”

value = [(“Annah”, “80”), (“Judy”, “70”), (“Ann”,”87”), (“Kimberly”, “54”)]

connection. Commit ()

cursor.execute(query, value)

How to place an order?

Take a few steps to place an order on our site:

  • Fill out the form and state the deadline.
  • Calculate the price of your order and pay for it with your credit card.
  • When the order is placed, we select a suitable writer to complete it based on your requirements.
  • Stay in contact with the writer and discuss vital details of research.
  • Download a preview of the research paper. Satisfied with the outcome? Press “Approve.”

Feel secure when using our service

It's important for every customer to feel safe. Thus, at University Study, we take care of your security.

Financial security You can safely pay for your order using secure payment systems.
Personal security Any personal information about our customers is private. No other person can get access to it.
Academic security To deliver no-plagiarism samples, we use a specially-designed software to check every finished paper.
Web security This website is protected from illegal breaks. We constantly update our privacy management.

Get assistance with placing your order. Clarify any questions about our services. Contact our support team. They are available 24\7.

Still thinking about where to hire experienced authors and how to boost your grades? Place your order on our website and get help with any paper you need. We’ll meet your expectations.

Order now Get a quote

error: Content is protected !!
Open chat
Need assignment help? You can contact our live agent via WhatsApp using +1 718 717 2861

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code STUDY