giovedì 15 aprile 2010

sqlite

create table ristorante (id int, nome varchar(30), indirizzo varchar(30), primary key(id))
insert into ristorante values (1,"calimero","via pulcino nero n34");
insert into ristorante values (2,"osteriadel ghiottone","via del sorcio morto n22");
select * from ristorante;
select * from ristorante where id=1;
update ristorante set indirizzo="vial del sorcio vivo 22" where id=2;
delate from ristorante where id=1;

Nessun commento:

Posta un commento