Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
-- version 4.5.0.2
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Czas generowania: 15 Wrz 2016, 11:07
-- Wersja serwera: 10.0.17-MariaDB
-- Wersja PHP: 5.6.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
--
-- Baza danych: `wypozyczalnia`
--
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `klienci`
--
CREATE TABLE `klienci` (
`ID_klienta` int(11) NOT NULL,
`Nazwisko` varchar(35) NOT NULL,
`Imie` varchar(20) NOT NULL,
`Nr_dowodu` varchar(9) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Zrzut danych tabeli `klienci`
--
INSERT INTO `klienci` (`ID_klienta`, `Nazwisko`, `Imie`, `Nr_dowodu`) VALUES
(1, 'Nowakowski', 'Jerzy', 'ASD23432'),
(2, 'Kot', 'Jan', 'AED34234'),
(3, 'Cichy', 'Karol', 'AMS23223'),
(4, 'Kosior', 'Piotr', 'AFE45344'),
(5, 'Lew', 'Ewa', 'AKO44433'),
(6, 'Kowalski', 'Krzysztof', 'ASD19343'),
(7, 'Nowak', 'Monika', 'AMF32223');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `samochody`
--
CREATE TABLE `samochody` (
`ID_samochodu` int(11) NOT NULL,
`Marka` varchar(11) NOT NULL,
`Model` varchar(11) NOT NULL,
`Nr_rejestracyjny` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Zrzut danych tabeli `samochody`
--
INSERT INTO `samochody` (`ID_samochodu`, `Marka`, `Model`, `Nr_rejestracyjny`) VALUES
(1, 'Volkswagen', 'Amarok', 'KRA 12342'),
(2, 'Volkswagen', 'Amarok', 'KRA 33442'),
(3, 'Volkswagen', 'Passat', 'KRA 42334'),
(4, 'Audi', 'A5', 'KRA 12343'),
(5, 'Audi', 'A5', 'KRA 12346'),
(6, 'Audi', 'A6', 'KRA 12777'),
(7, 'Skoda', 'Octavia', 'KRA 12344'),
(8, 'Skoda', 'Octavia', 'KRA 32354'),
(9, 'Skoda', 'Superb', 'KRA 25433'),
(10, 'Skoda', 'Octavia', 'KRA 98769'),
(11, 'Volkswagen', 'Passat', 'KRA 55566'),
(12, 'Skoda', 'Superb', 'KRA 78553');
-- --------------------------------------------------------
--
-- Struktura tabeli dla tabeli `wypozyczenia`
--
CREATE TABLE `wypozyczenia` (
`ID_wypozyczenia` int(11) NOT NULL,
`ID_samochodu` int(11) NOT NULL,
`ID_klienta` int(11) NOT NULL,
`Data_wypozycz` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Zrzut danych tabeli `wypozyczenia`
--
INSERT INTO `wypozyczenia` (`ID_wypozyczenia`, `ID_samochodu`, `ID_klienta`, `Data_wypozycz`) VALUES
(1, 3, 3, '2016-08-02'),
(2, 5, 6, '2016-08-04'),
(3, 6, 5, '2016-08-04'),
(4, 7, 3, '2016-08-08'),
(5, 1, 1, '2016-08-08'),
(6, 12, 2, '2016-08-09'),
(7, 10, 4, '2016-08-10'),
(8, 3, 1, '2016-08-11'),
(9, 9, 3, '2016-08-13'),
(10, 8, 7, '2016-08-16'),
(11, 2, 4, '2016-08-18');
--
-- Indeksy dla zrzutów tabel
--
--
-- Indexes for table `klienci`
--
ALTER TABLE `klienci`
ADD PRIMARY KEY (`ID_klienta`);
--
-- Indexes for table `samochody`
--
ALTER TABLE `samochody`
ADD PRIMARY KEY (`ID_samochodu`);
--
-- Indexes for table `wypozyczenia`
--
ALTER TABLE `wypozyczenia`
ADD PRIMARY KEY (`ID_wypozyczenia`),
ADD KEY `ID_samochodu` (`ID_samochodu`),
ADD KEY `ID_klienta` (`ID_klienta`);
--
-- Ograniczenia dla zrzutów tabel
--
--
-- Ograniczenia dla tabeli `wypozyczenia`
--
ALTER TABLE `wypozyczenia`
ADD CONSTRAINT `wypozyczenia_ibfk_1` FOREIGN KEY (`ID_klienta`) REFERENCES `klienci` (`ID_klienta`),
ADD CONSTRAINT `wypozyczenia_ibfk_2` FOREIGN KEY (`ID_samochodu`) REFERENCES `samochody` (`ID_samochodu`);
/*!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 */;
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team