Come faccio a rendre il campo idsoggetto not null? dove sbaglio?
mysql> describe telefono;
+------------+----------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+----------+------+-----+---------+----------------+
| idtelefono | int(11) | | PRI | NULL | auto_increment |
| telef | char(30) | YES | | NULL | |
| note | char(30) | YES | | NULL | |
| idsoggetto | int(11) | YES | | NULL | |
+------------+----------+------+-----+---------+----------------+
4 rows in set (0.00 sec)
mysql> alert table telefono change idsoggetto idsoggetto int not null;
ERROR 1064: You have an error in your SQL syntax near 'alert table telefono chan
ge idsoggetto idsoggetto int not null' at line 1