Home Sql Mysql-example Mysql From Table



Mysql From Table
Posted on: January 20, 2009 at 12:00 AM
Mysql From Table is used to specify the table from which the records is retrieved.

Mysql From Table

     

Mysql From Table is used to specify the table from which the records is retrieved.

Understand with Example

The Tutorial illustrate an exanple from 'Mysql From Table'. To grasp this example we create  a table 'Stu' that include fieldname and datatype respectively.

 

 

 

 

Create Table Stu

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

Insert Values into Stu

Insert into is used to add the records or rows to the 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 keyword 'from' is used to specify the table 'Stu' from which records is retrieved.

Select * from Stu;

Result

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

 

Related Tags for Mysql From Table:
sqlmysqlctablesedtabifierecordrecordstocieusetriepefrommtrspecretrievewhichsspmyisrdsssrirdthabablomo


More Tutorials from this section

Ask Questions?    Discuss: Mysql From Table  

Post your Comment


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

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.