CREAZIONE DI UNA TABELLA IN SQL

 

Le tabelle vengono definite con il comando CREATE TABLE seguito dal nome della tabella e dai suoi attributi. Per ogni attributo occorre specificare il tipo di dato.

 

ESEMPIO

            

CREATE TABLE anagrafe     
 (nome char(15),   
 cognome char(15), 
data nascita(date),   
codfiscale(16)); 

                                                                                                                                                                          

INDIETRO