Quantcast
Viewing all articles
Browse latest Browse all 3548

Re: Mysql to Cloud Application

Thanks to Sergio and Vladimir....now i´m understanding the solutions.... See the file .sql below like example....is possible to run a sql file to upload mydatabase and do a prototype to learn the hana plataform as TRIAL USER?  The text below is only a example.

 

/*

SQLyog Enterprise - MySQL GUI v6.05

Host - 5.0.21-community-nt : Database - myprj

*********************************************************************

Server version : 5.0.21-community-nt

*/

 

 

 

 

/*!40101 SET NAMES utf8 */;

 

 

/*!40101 SET SQL_MODE=''*/;

 

 

create database if not exists `myprj`;

 

 

USE `myprj`;

 

 

/*!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' */;

 

 

/*Table structure for table `menus` */

 

 

DROP TABLE IF EXISTS `menus`;

 

 

CREATE TABLE `menus` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vlink` varchar(100) character set latin1 collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1;

 

 

/*Data for the table `menus` */

 

 

insert  into `menus`(`id`,`datat`,`ativo`,`vtipo`,`vlink`) values (1,'2009-05-21 13:33:15',0,0,'menu1[0]=\'<a href=\"http://portal.educacao.mg.gov.br\"  title=\"HomePage\"  >Principal</a>\''),(2,'2009-05-21 13:35:02',2,0,'menu2[0]=\'<a href=\"/produtos\"       title=\"Listagem\"  >Produtos</a>\''),(3,'2009-05-21 13:35:05',2,0,'menu2[1]=\'<a href=\"/menus\"          title=\"Listagem\"  >Menus</a>\''),(4,'2009-05-21 13:35:08',2,0,'menu2[2]=\'<a href=\"/usuarios/lista\" title=\"Listagem\"  >Usuarios</a>\''),(5,'2009-05-21 13:35:11',2,0,'menu3[0]=\'<a href=\"/produtos/new\"   title=\"Adicionar\" >Produtos</a>\''),(6,'2009-05-21 13:35:19',0,0,'menu3[1]=\'<a href=\"/menus/new\"      title=\"Adicionar\" >Menus</a>\''),(7,'2009-05-21 13:35:23',2,0,'menu3[2]=\'<a href=\"/usuarios/new\"   title=\"Adicionar\" >Usuarios</a>\'');

 

 

/*Table structure for table `notas` */

 

 

DROP TABLE IF EXISTS `notas`;

 

 

CREATE TABLE `notas` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `local` varchar(255) collate latin1_general_ci NOT NULL,

  `email` varchar(255) collate latin1_general_ci NOT NULL,

  `pagto` char(2) collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `notas` */

 

 

/*Table structure for table `produtos` */

 

 

DROP TABLE IF EXISTS `produtos`;

 

 

CREATE TABLE `produtos` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `descricao` text collate latin1_general_ci NOT NULL,

  `datapubli` date NOT NULL,

  `imagem` varchar(35) collate latin1_general_ci NOT NULL,

  `preco` decimal(8,2) NOT NULL default '0.00',

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `produtos` */

 

 

insert  into `produtos`(`id`,`datat`,`ativo`,`vtipo`,`vnome`,`descricao`,`datapubli`,`imagem`,`preco`) values (1,'2009-06-05 14:32:55',1,0,'Pragmatic Project Automation','<em>Pragmatic Project Automation</em> shows you how to improve the consistency and repeatability of your project\'s procedures using automation to reduce risk and errors.\r\n<p>Simply put, we\'re going','2009-05-27','auto.jpg','29.95'),(2,'2009-06-04 14:08:28',1,0,'Pragmatic Version Control','This book is a recipe-based approach to using Subversion that will get you up and running quickly---and correctly. All projects need version control: it\'s a foundational piece of any project\'s infrastructur\r\n<p> Without good tests in place','0000-00-00','svn.jpg','28.50'),(3,'2009-05-27 15:41:39',1,0,'Pragmatic Unit Testing (C#)','Pragmatic programmers use feedback to drive their development and personal processes. The most valuable feedback you can get while coding comes from unit testing.\r\n<p>Without good tests in place','0000-00-00','utc.jpg','27.75'),(4,'2009-06-05 14:32:58',1,2,'Ruby Web Development','How to implement software with the ruby language','2007-05-17','rails.png','30.12');

 

 

/*Table structure for table `usuarios` */

 

 

DROP TABLE IF EXISTS `usuarios`;

 

 

CREATE TABLE `usuarios` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vnome` varchar(55) collate latin1_general_ci NOT NULL,

  `login` char(10) collate latin1_general_ci NOT NULL,

  `senha` char(10) collate latin1_general_ci NOT NULL,

  `menus` int(10) unsigned NOT NULL default '0',

  `imagem` varchar(35) collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `usuarios` */

 

 

insert  into `usuarios`(`id`,`datat`,`ativo`,`vtipo`,`vnome`,`login`,`senha`,`menus`,`imagem`) values (1,'2009-05-31 08:39:41',1,0,'Paulo de Tharso','admin','play',7,'3x4.png');

 

 

/*Table structure for table `vendas` */

 

 

DROP TABLE IF EXISTS `vendas`;

 

 

CREATE TABLE `vendas` (

  `id` int(10) unsigned NOT NULL auto_increment,

  `datat` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,

  `ativo` int(1) unsigned NOT NULL default '2',

  `vtipo` int(1) unsigned NOT NULL default '0',

  `vqtde` int(10) default NULL,

  `total` decimal(8,2) default NULL,

  `produto_id` int(10) unsigned NOT NULL,

  `nota_id` int(10) unsigned NOT NULL,

  `usuario_id` int(10) NOT NULL,

  PRIMARY KEY  (`id`),

  KEY `fk_venda_produtos` (`produto_id`),

  KEY `fk_venda_notas` (`nota_id`),

  KEY `fk_venda_usuarios` (`usuario_id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

 

 

/*Data for the table `vendas` */

 

 

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;

/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>