Advertisement
Guest User

registroSpese

a guest
Jul 28th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.42 KB | None | 0 0
  1. CREATE DATABASE  IF NOT EXISTS `registrospese` /*!40100 DEFAULT CHARACTER SET latin1 */;
  2. USE `registrospese`;
  3. -- MySQL dump 10.13  Distrib 5.6.17, for Win32 (x86)
  4. --
  5. -- Host: 127.0.0.1    Database: registrospese
  6. -- ------------------------------------------------------
  7. -- Server version   5.6.21
  8.  
  9. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  10. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  11. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  12. /*!40101 SET NAMES utf8 */;
  13. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  14. /*!40103 SET TIME_ZONE='+00:00' */;
  15. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  16. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  17. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  18. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  19.  
  20. --
  21. -- Table structure for table `categoria`
  22. --
  23.  
  24. DROP TABLE IF EXISTS `categoria`;
  25. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  26. /*!40101 SET character_set_client = utf8 */;
  27. CREATE TABLE `categoria` (
  28.   `idcategoria` int(11) NOT NULL AUTO_INCREMENT,
  29.   `nome` varchar(45) DEFAULT NULL,
  30.   PRIMARY KEY (`idcategoria`)
  31. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
  32. /*!40101 SET character_set_client = @saved_cs_client */;
  33.  
  34. --
  35. -- Dumping data for table `categoria`
  36. --
  37.  
  38. LOCK TABLES `categoria` WRITE;
  39. /*!40000 ALTER TABLE `categoria` DISABLE KEYS */;
  40. INSERT INTO `categoria` VALUES (1,'Bollette'),(2,'Divertimento'),(3,'Bevande'),(4,'Sport'),(5,'Abbigliamento'),(6,'Autostrada'),(7,'Altro'),(8,'Carburante'),(9,'Istruzione');
  41. /*!40000 ALTER TABLE `categoria` ENABLE KEYS */;
  42. UNLOCK TABLES;
  43.  
  44. --
  45. -- Table structure for table `spesa`
  46. --
  47.  
  48. DROP TABLE IF EXISTS `spesa`;
  49. /*!40101 SET @saved_cs_client     = @@character_set_client */;
  50. /*!40101 SET character_set_client = utf8 */;
  51. CREATE TABLE `spesa` (
  52.   `idspesa` int(11) NOT NULL AUTO_INCREMENT,
  53.   `costo` double DEFAULT NULL,
  54.   `categoria` varchar(45) DEFAULT NULL,
  55.   `descrizione` varchar(45) DEFAULT NULL,
  56.   `data` date DEFAULT NULL,
  57.   PRIMARY KEY (`idspesa`)
  58. ) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=latin1;
  59. /*!40101 SET character_set_client = @saved_cs_client */;
  60.  
  61. --
  62. -- Dumping data for table `spesa`
  63. --
  64.  
  65. LOCK TABLES `spesa` WRITE;
  66. /*!40000 ALTER TABLE `spesa` DISABLE KEYS */;
  67. INSERT INTO `spesa` VALUES (42,21.3,'Bollette','Enel','2017-07-19'),(43,55.5,'Sport','Piscina','2017-05-01'),(44,32,'Divertimento','Kart','2017-02-01'),(45,10,'Bevande','Acqua','2017-07-25'),(46,57,'Bollette','Gas','2017-07-25'),(49,29,'Bevande','Test','2016-07-01'),(50,150,'Divertimento','MotoGP','2017-09-05'),(51,80,'Bollette','Acqua','2017-07-01'),(52,55,'Abbigliamento','Scarpe','2017-07-25'),(53,25,'Autostrada','Firenze-Roma','2017-06-06'),(54,48,'Istruzione','Libro S.O.','2017-07-11'),(55,3,'Altro','Pellicola','2017-07-25');
  68. /*!40000 ALTER TABLE `spesa` ENABLE KEYS */;
  69. UNLOCK TABLES;
  70. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  71.  
  72. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  73. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  74. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  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 */;
  78. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  79.  
  80. -- Dump completed on 2017-07-25  0:24:10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement