Showing posts with label SQL. Show all posts
Showing posts with label SQL. Show all posts

Thursday, 25 July 2019

How to create procedure in MySQL database?

                 In this post, we will see how to create procedure in MySQL database. 
             
What is the need of procedure?

1. By creating procedure, we can run multiple SQL queries in a single call. 

2. Another advantage is that procedure is stored and can be called at any time. No need to write same SQL queries again and again. 

For Demonstration, watch following video:

Watch on YouTube: https://www.youtube.com/watch?v=02clWrruoKE

                 Check following example:

Tuesday, 16 July 2019

Solution for Mysql error: access denied for user 'root'@'localhost'

                  In this post, we will see solution for the mysql error access denied for user 'root'@'localhost'. 

Tuesday, 3 January 2017

How to insert and retrieve image from mysql database in jsp

                        In this post, we will see how to insert and retrieve image from mysql database in jsp.
                        Here, frontend and backend programs are in JSP while database used is Mysql. Database name is "test", Database user name is also "test" and password is "123". Table name in which I have inserted image here, is "biodata". Table's configuration is shown in following screenshot:


Saturday, 26 December 2015

Mysql Tutorial - Basic SQL Queries

               In this post (tutorial), we will see basic sql queries which we need for database (e.g. Mysql) operations.