Skip to content

Instantly share code, notes, and snippets.

@loonix
Last active June 22, 2020 11:56
Show Gist options
  • Save loonix/5252c08fad0aa209f152089e88e4884a to your computer and use it in GitHub Desktop.
Save loonix/5252c08fad0aa209f152089e88e4884a to your computer and use it in GitHub Desktop.
[MariaDb Dump Example database] #sql
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: db2
-- ------------------------------------------------------
-- Server version 10.4.13-MariaDB-1:10.4.13+maria~bionic
/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `products`
--
DROP TABLE IF EXISTS `products`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products` (
`productID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`productCode` char(3) NOT NULL DEFAULT '',
`name` varchar(30) NOT NULL DEFAULT '',
`quantity` int(10) unsigned NOT NULL DEFAULT 0,
`price` decimal(7,2) NOT NULL DEFAULT 99.99,
PRIMARY KEY (`productID`)
) ENGINE=InnoDB AUTO_INCREMENT=1015 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `products`
--
LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` VALUES (1001,'PEN','Pen Red',4950,1.30),(1002,'PEN','Pen Blue',8000,1.38),(1003,'PEN','Pen Black',2000,1.38),(1004,'PEC','Pencil 2B',10000,0.53),(1005,'PEC','Pencil 2H',8000,0.54),(1006,'NTB','Notebook A4L90p',9000,3.63),(1007,'NTB','Notebook B5L60p',8000,3.08),(1008,'NTB','Notebook A5L50p',68500,2.42),(1009,'NTB','Notebook B6L40p',68500,2.20),(1010,'PAP','Paper A4W80/500',1000,5.50),(1011,'PAP','Paper A4E80/500',1100,5.39),(1012,'RUB','Rubber white Soft',1200,2.19),(1013,'RUB','Rubber color Medium',1500,1.09),(1014,'DIG','iPad mini-4-Wi-Fi-128',4,449.99);
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2020-06-05 17:37:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment