-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbiblioteca.sql
45 lines (37 loc) · 1.31 KB
/
biblioteca.sql
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
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 10-11-2021 a las 21:55:54
-- Versión del servidor: 5.7.31
-- Versión de PHP: 7.3.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 */;
--
-- Base de datos: `biblioteca`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `libros`
--
DROP TABLE IF EXISTS `libros`;
CREATE TABLE IF NOT EXISTS `libros` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`titulo` varchar(150) NOT NULL,
`isbn` varchar(150) NOT NULL,
`nombre_persona` varchar(150) NOT NULL,
`fecha_prestamo` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`fecha_entrega` datetime DEFAULT NULL,
`estado` varchar(150) NOT NULL DEFAULT 'prestado',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
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 */;