Repository navigation
Expand file tree
/
Copy pathhibernatedemo1.sql
More file actions
108 lines (87 loc) · 2.63 KB
/
Copy pathhibernatedemo1.sql
File metadata and controls
108 lines (87 loc) · 2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: May 21, 2019 at 01:55 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `hibernatedemo1`
--
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
CREATE TABLE `employee` (
`emp_id` int(9) NOT NULL,
`emp_name` varchar(50) NOT NULL,
`emp_email` varchar(50) NOT NULL,
`emp_phone` bigint(30) NOT NULL,
`emp_salary` bigint(10) NOT NULL,
`emp_join_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employee`
--
INSERT INTO `employee` (`emp_id`, `emp_name`, `emp_email`, `emp_phone`, `emp_salary`, `emp_join_date`) VALUES
(2, 'mihir', 'mihdhari@gmail.com', 9999999999, 9000, '2019-05-07 01:52:33'),
(3, 'Tyrian', 'imp@imp.com', 8989773344, 4500, '2019-05-07 01:52:51'),
(4, 'Jamee', 'betray@betray.com', 2939192939, 20000, '2019-05-07 01:33:42'),
(5, 'Cersai', 'damm@women.com', 1020103040, 90000, '2019-05-07 01:51:39');
-- --------------------------------------------------------
--
-- Table structure for table `student_table`
--
CREATE TABLE `student_table` (
`id` int(3) NOT NULL,
`rollno` bigint(10) NOT NULL,
`name` varchar(50) NOT NULL,
`marks` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `student_table`
--
INSERT INTO `student_table` (`id`, `rollno`, `name`, `marks`) VALUES
(1, 10, 'ket patel', 10),
(2, 94, 'kom', 84),
(7, 2, 'kkk', 25),
(8, 420, 'modi', 100);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `employee`
--
ALTER TABLE `employee`
ADD PRIMARY KEY (`emp_id`);
--
-- Indexes for table `student_table`
--
ALTER TABLE `student_table`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `emp_id` int(9) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `student_table`
--
ALTER TABLE `student_table`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;