quinta-feira, 20 de agosto de 2009
terça-feira, 11 de agosto de 2009
Numeros Random - Postgres Matos - 12 08 09 21.11
SELECT random();
SELECT round(CAST (random()*100 AS NUMERIC),0);
SELECT 27 + round(CAST (random()*(91-27) AS NUMERIC),0);
SELECT -57 + round(CAST (random()*(91+57) AS NUMERIC),0);
select version();
select current_time;
select current_date;
select now();
select 5+7-10+100
select current_user;
select current_database();
Numeros Randomicos
SELECT random();
SELECT round(CAST (random()*100 AS NUMERIC),0);
SELECT 27 + round(CAST (random()*(91-27) AS NUMERIC),0);
SELECT -57 + round(CAST (random()*(91+57) AS NUMERIC),0);
select version();
select current_time;
select current_date;
select now();
select 5+7-10+100
select current_user;
select current_database();
Numeros Randomicos
domingo, 9 de agosto de 2009
Alterar Tabela - ALTER TABLE - Matos 10 08 09 12.13
ALTER TABLE
ADD - Adiciona nova Coluna
DROP - Exclui um coluna/campo da tabela
ALTER - Altera as propriedades de uma coluna/campo
RENAME - Renomeia uma coluna/campo da tabela
Adicionar um Campo
AFTER TABLE tabela ADD COLUMN campo tipo;
AFTER TABLE produtos ADD COLUMN descricao text;
Remover um Campo
AFTER TABLE tabela DROP COLUMN campo;
AFTER TABLE produtos DROP COLUMN descricao text;
Criar Tabela - CREATE TABLE MATOS - 10 08 09 12.05
Create
CREATE TABLE Fornecedor {
Cod_Fornecedor Numeric(15),
Razao_Social varchar(60),
Endereco varchar(60),
Telefone Numeric(10)
};
O que é Postgres - Matos - 10 08 09
O Postgres é um SGBD(Sistema Gerenciador de Banco de Dados) relacional de
codigo aberto e gratuito, que surgiu a partir do antigo Ingres, da Universidade
de Berkeley. Inicialmente o postgres so rodava em Plataforma Unix, mas, atualmente
ja existe suporte para Windows.
http://www.postgresql.org
http://www.postgresql.org/ftp
http://www.postgresql.org.br/
segunda-feira, 3 de agosto de 2009
sábado, 1 de agosto de 2009
Estudar esses links e ver - 12 08 09
Assinar:
Postagens (Atom)