Submitted by jjadmin on Wed, 11/20/2013 - 10:51
1. Downloading, installing and configuring the database
See the installation and configuration note for your database.
2. Create table and insert data as:
Create table employee(empName varchar(20), id int PRIMARY KEY)
insert into employee values (‘name1’,1)
insert into employee values (‘name2’,2)
Submitted by heartin on Tue, 05/28/2013 - 03:44
We can define columns in databases which will auto increment its values whenever we add a new row. Different databases have different ways to do so and even call them differently like auto increment, identity column etc. We will discuss the auto increment for some databases here. Please feel free to add other database details that you know through the comments.
Auto Increment in MySQL
The AUTO_INCREMENT attribute can be used to generate a unique identity for new rows: [node:read-more:link]
Submitted by heartin on Fri, 05/24/2013 - 00:18
Submitted by heartin on Thu, 05/23/2013 - 08:50
Here we discuss examples for different cases of usage for stored procedures and stored functions. Please refer to the note on ‘Stored Procedures and Stored Functions in MySQL’ for more theory, details and explanations. [node:read-more:link]
Submitted by heartin on Thu, 05/23/2013 - 08:37
A stored routine allow users to define a set of statements that they can later call together. Stored procedures and stored functions are the two types of stored routines in MySQL. A stored procedure takes in zero or more input parameters and runs specified SQL statements. A stored function takes in zero or more parameters, runs specified SQL, and returns exactly one scalar value. [node:read-more:link]