Vous êtes sur la page 1sur 3

-- phpMyAdmin SQL Dump

-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tempo de Geração: Mar 17, 2011 as 05:53 PM
-- Versão do Servidor: 5.1.36
-- Versão do PHP: 5.3.0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Banco de Dados: `Escola`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `alunos`
--
CREATE TABLE IF NOT EXISTS `alunos` (
`codigo` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(50) NOT NULL,
`dataNasc` date NOT NULL,
`sexo` varchar(1) NOT NULL DEFAULT 'F',
`Estado` varchar(30) DEFAULT 'normal',
PRIMARY KEY (`codigo`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Extraindo dados da tabela `alunos`
--
INSERT INTO `alunos` (`codigo`, `nome`, `dataNasc`, `sexo`, `Estado`) VALUES
(1, 'Talita', '1982-07-01', 'F', 'normal'),
(2, 'Karina', '1988-06-07', 'F', 'normal'),
(3, 'Marcelino', '1976-03-31', 'M', 'Aguardando');
-- --------------------------------------------------------
--
-- Estrutura da tabela `cursos`
--
CREATE TABLE IF NOT EXISTS `cursos` (
`cod_curso` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(50) NOT NULL,
`numeros_de_ciclos` int(11) NOT NULL,
`periodicidade` varchar(15) NOT NULL DEFAULT 'semanal',
`ano_ministrado` date NOT NULL,
PRIMARY KEY (`cod_curso`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Extraindo dados da tabela `cursos`
--

-- --------------------------------------------------------
--
-- Estrutura da tabela `disciplinas`
--
CREATE TABLE IF NOT EXISTS `disciplinas` (
`cod_disciplina` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(50) NOT NULL,
`ciclo_ministrada` varchar(25) NOT NULL,
`quantidade_aulas` int(11) NOT NULL,
PRIMARY KEY (`cod_disciplina`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Extraindo dados da tabela `disciplinas`
--

-- --------------------------------------------------------
--
-- Estrutura da tabela `professores`
--
CREATE TABLE IF NOT EXISTS `professores` (
`cod_prof` int(11) NOT NULL AUTO_INCREMENT,
`nome` varchar(50) NOT NULL,
`data_nasc` date NOT NULL,
`RG` int(11) NOT NULL,
`ano_ingressou_escola` year(4) NOT NULL,
`nivel_escolar` varchar(30) NOT NULL,
`tipo_contrato` varchar(25) NOT NULL,
PRIMARY KEY (`cod_prof`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Extraindo dados da tabela `professores`
--

-- --------------------------------------------------------
--
-- Estrutura da tabela `tópicos`
--
CREATE TABLE IF NOT EXISTS `tópicos` (
`cod_topicos` int(11) NOT NULL AUTO_INCREMENT,
`descricao_topicos` varchar(40) NOT NULL,
PRIMARY KEY (`cod_topicos`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Extraindo dados da tabela `tópicos`
--

-- --------------------------------------------------------
--
-- Estrutura da tabela `turma`
--
CREATE TABLE IF NOT EXISTS `turma` (
`codigo_turma` int(11) NOT NULL AUTO_INCREMENT,
`Designacao` varchar(3) NOT NULL,
`ciclo_pertence` int(11) NOT NULL,
`Periodo_de_aulas` varchar(5) NOT NULL DEFAULT 'noite',
PRIMARY KEY (`codigo_turma`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
--
-- Extraindo dados da tabela `turma`
--

Vous aimerez peut-être aussi