Databases| SQL| MySQL| Questions?

 

 

 

 

 

 

 

 

 

 

 

 

 

Search Tutorials:
 

Software Solutions and Services
 

 
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments
 
Create a database 
 

In this sction, you will learn how to create database.

 

Create a database

                         

In this section, we will teach you to create a database. 

First of all, display all databases by show databases. This helps to find out the existing database. Then create a database using the given syntax and give the suitable name of database.

 

 

 

 

 

CREATE DATABASE database_name;

Then create connection with database. The connection  is included in the names of the database. 

Create a Table: the following query creates a table
CREATE TABLE table_name
(
column_name1 data_type,
.......
)

Yet the table does not have any data. 

In the given example we show the use of the create to make a table email and populate it with the field named LName, FName and email_add.

CREATE TABLE email
(
LName varchar(20),
FName varchar(20),
email_add varchar(40)
)

                         

» View all related tutorials
Related Tags: c sed field name create if index ie to ld ci e use pe in m clause cl spec me

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

4 comments so far (
post your own) View All Comments Latest 10 Comments:

very easy to understand

Posted by nithi on Tuesday, 08.12.08 @ 16:43pm | #72507

The examples are simple and easy to understand.
Thanks alot.

Posted by AMOS OJIMAM on Wednesday, 05.21.08 @ 20:19pm | #60605

hello sir,

the explaNATION WHAT YOU MADE IS VERY NICE.. THANK U FOR GIVING US SUCH A NICE EXPLANATION

Posted by rajeswari on Saturday, 03.1.08 @ 17:09pm | #50853

Hello sir,
The way you are explaining is really good.

Posted by Uday on Friday, 02.1.08 @ 00:22am | #46766

Training Courses
Tell A Friend
Your Friend Name
Website Designing Services
 
Web Designing Packages From $150!
 
Website Designing Company Web Hosting
 
Website Designing Quotation
 
Search Tutorials:

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Indian Software Development Company | iPhone Development Company in India | Flex Development Company in India | Java Training Delhi | Java Training at Noida |

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.