MySQL Forums
Forum List  »  Italian

Re: problemi con mysql
Posted by: Michele Abbondanza
Date: February 18, 2009 05:51AM

ciao e benvenuto!

1)la differenza che ho trovato è questa:
Se c'è un solo attributo coinvolto,si può usare il costrutto sintattico references, con il quale si specificano la tabella esterna e l'attributo della tabella esterna al quale l'attributo in questione deve essere legato; una definizione alternativa, necessaria quando il legame è rappresentato da un insieme di attributi, fa uso invece del costrutto foreign key, posto al termine della definizione degli attributi

2) l'errore 1064 è syntax error, e credo sia perchè manca il null o "not null" prova con:
`tipo_cucina` VARCHAR( 15 ) NOT NULL DEFAULT 'ITALIANA'

3) si :)

Options: ReplyQuote


Subject
Views
Written By
Posted
6825
October 02, 2007 09:45AM
3487
February 05, 2009 09:00AM
3319
February 18, 2009 05:54AM
Re: problemi con mysql
3385
February 18, 2009 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.