jueves, 21 de abril de 2011

►Comandos SQL.-

PARA CREAR LA TABLA.-
create table "nombre de la tabla"("ingresar valores")

PARA INSERTAR VALORES.-
begin
insert into "nombre de la tabla"("damos valor a nuestros atributos");
end

PARA LISTAR.-
select * from "nombre de la tabla"

PARA MODIFICAR.-
update "nombre de la tabla"

PARA MOSTAR LOS DATOS DE LA TABLA.-
describe "nombre de la tabla"

ELIMINAR REGISTRO DENTRO DE LA TABLA.-
delete "nombre de la tabla"

ELIMINAR LA TABLA.-
drop table "nombre de la tabla"

No hay comentarios:

Publicar un comentario