· 8 years ago · Apr 19, 2018, 07:44 PM
1-- phpMyAdmin SQL Dump
2-- version 4.4.15.5
3-- http://www.phpmyadmin.net
4--
5-- Host: localhost:3306
6-- Generation Time: Apr 19, 2018 at 07:42 PM
7-- Server version: 5.5.49-log
8-- PHP Version: 7.0.9
9
10SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11SET time_zone = "+00:00";
12
13
14/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17/*!40101 SET NAMES utf8mb4 */;
18
19--
20-- Database: `cars`
21--
22
23-- --------------------------------------------------------
24
25--
26-- Table structure for table `cars`
27--
28
29CREATE TABLE IF NOT EXISTS `cars` (
30 `id` int(11) NOT NULL,
31 `brand` varchar(255) NOT NULL,
32 `price` decimal(10,2) NOT NULL
33) ENGINE=InnoDB DEFAULT CHARSET=latin1;
34
35--
36-- Dumping data for table `cars`
37--
38
39INSERT INTO `cars` (`id`, `brand`, `price`) VALUES
40(0, 'mercedes', 5000.00),
41(0, 'toyota', 6000.00);
42
43-- --------------------------------------------------------
44
45--
46-- Table structure for table `trucks`
47--
48
49CREATE TABLE IF NOT EXISTS `trucks` (
50 `id` int(11) unsigned NOT NULL,
51 `brand` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
52 `price` decimal(6,2) DEFAULT NULL,
53 `maxkg` int(11) DEFAULT NULL
54) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
55
56--
57-- Indexes for dumped tables
58--
59
60--
61-- Indexes for table `trucks`
62--
63ALTER TABLE `trucks`
64 ADD PRIMARY KEY (`id`);
65
66--
67-- AUTO_INCREMENT for dumped tables
68--
69
70--
71-- AUTO_INCREMENT for table `trucks`
72--
73ALTER TABLE `trucks`
74 MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT;
75/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
76/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
77/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;