Hug à tous :
Aide dit :
=> Donc il semble impossible via commande ALTER de transformer un champ en NOT NULL (sauf en ajoutant un champ temporaire, en coppiant les données, en supprimant le champ initial et en renommant le champ temporaire...??)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 ALTER TABLE table <operation> [, <operation> ]; <operation> = {ADD <col_def> | ADD <tconstraint> | ALTER [COLUMN] column_name <alt_col_clause> | DROP col | DROP CONSTRAINT constraint} <alt_col_clause> = {TO new_col_name | TYPE new_col_datatype | POSITION new_col_position} <col_def> = col {<datatype> | COMPUTED [BY] (<expr>) | domain} [DEFAULT {literal | NULL | USER}] [NOT NULL] [<col_constraint>] ...
Confirmation ??
Merci
Partager