3xtms6pn2 

   
   

Output:

Field	Type	Null	Key	Default	Extra
AccNo	int	NO	PRI	NULL	
Cust_name	varchar(20)	YES		NULL	
loan_amount	int	YES		NULL	
installment	int	YES		NULL	
int_rate	int	YES		NULL	
Star_date_int	date	YES		NULL	
AccNo	Cust_name	loan_amount	installment	int_rate	Star_date_int
1	R.K.Gupta	300000	36	12	2009-07-19
2	S.P.Sharma	500000	48	10	2008-03-22
3	K.P Jain	300000	36	NULL	2007-03-08
4	M.P.Yadav	800000	60	10	2008-06-12
5	S.P.Sinha	200000	36	13	2010-01-03
6	P.Sharma	70000	60	12	2008-06-05
7	K.S.Dhall	500000	48	NULL	2008-03-05
AccNo	Cust_name	loan_amount
2	S.P.Sharma	500000
3	K.P Jain	300000
4	M.P.Yadav	800000
6	P.Sharma	70000
7	K.S.Dhall	500000
int_rate
12
10
13
AccNo	Cust_name	loan_amount
2	S.P.Sharma	500000
6	P.Sharma	70000

MySQL online editor

Write, Run & Share MySQL queries online using OneCompiler's MySQL online editor and compiler for free. It's one of the robust, feature-rich online editor and compiler for MySQL. Getting started with the OneCompiler's MySQL editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose language as 'MySQL' and start writing queries to learn and test online without worrying about tedious process of installation.

About MySQL

MySQL is a open-source, free and very popular relational database management system which is developed, distributed and supported by Oracle corporation.

Key Features:

  • Open-source relational database management systems.
  • Reliable, very fast and easy to use database server.
  • Works on client-server model.
  • Highly Secure and Scalable
  • High Performance
  • High productivity as it uses stored procedures, triggers, views to write a highly productive code.
  • Supports large databases efficiently.
  • Supports many operating systems like Linux*,CentOS*, Solaris*,Ubuntu*,Windows*, MacOS*,FreeBSD* and others.

Syntax help

Commands

1. CREATE


Example


2. ALTER


Example


3. TRUNCATE


4. DROP


5. RENAME


6. COMMENT

Single-Line Comments:


Multi-Line comments:


DML Commands

1. INSERT


Note: Column names are optional.

Example


2. SELECT


Example


3. UPDATE


Example


4. DELETE


Example


Indexes

1. CREATE INDEX


  • To Create Unique index:

2. DROP INDEX


Views

1. Create a View


2. How to call view


3. Altering a View


4. Deleting a View


Triggers

1. Create a Trigger


2. Drop a Trigger


Stored Procedures

1. Create a Stored Procedure


2. How to call Stored procedure


3. How to delete stored procedure


Joins

1. INNER JOIN


2. LEFT JOIN


3. RIGHT JOIN


4. CROSS JOIN



© Copyright 2025 One Compiler Pvt. Ltd. | Privacy Policy | Terms & Conditions