Share on Google+Share on Google+

Mysql From

Advertisement
The Tutorial illustrate an example from 'Mysql From'. To understand example we create a table 'stu' with required fieldnames and datatypes as per required.

Mysql From

     

Mysql From specify the table from which records is retrieved.

Understand with Example

The Tutorial illustrate an example from 'Mysql From'. To understand example we create a table 'stu' with required fieldnames and datatypes as per required.

 

 

 

 

Create Table Stu:

Create Table Stu(Id int,Name Varchar(15));

Insert Values into Stu:

The insert into is used to add the records or rows value into table 'Stu'.

Insert Into Stu values(1,'Ajay');
Insert Into Stu values(2,'Bhanu');
Insert Into Stu values(4,'Rakesh');
Insert Into Stu values(5,'Santosh');
Insert Into Stu values(3,'Komal');

Query for From:

The Query From show you the table from which records are retrieved.

Select * from Stu;

Result

+------+---------+
| Id   | Name    |
+------+---------+
| 1    | Ajay    |
| 2    | Bhanu   |
| 4    | Rakesh  |
| 5    | Santosh |
| 3    | Komal   |
+------+---------+

 

Advertisements

Posted on: January 17, 2009 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Mysql From  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0