General: ALTER TABLE [table name] add [Field name] Field properties default default is optional parameter increment field: ALTER TABLE [table name] Add field name smallint default 0 Add Number field, int, The default value is 0 ALTER TABLE [table name] Add field name int default 0 Add Number field, Long integer, default value 0alter table [table name] Add field name single default 0 Add Number field, one type, default value is 0 a Lter table [table name] Add field name double default 0 Add Numeric field, double type, default value 0alter table [table name] Add field name Tinyint default 0 Increase Number field, byte type, default value is 0 alte R table [table name] Add field name text [NULL] Add Memo field, [NULL] optional parameter ALTER TABLE [table name] Add field name MEMO [NULL] Add Memo Type field [NULL] optional parameter ALTER TABLE [table name ] Add field name varchar (N) [null] increase variable length text type field size N (1~255) ALTER TABLE [table name] Add field name char [null] increase fixed length text field size fix to 255 ALTER TABLE [table name] Add field name the datetime default function increments the Date field, where the function can be now (), date (), and so on, representing the default value (which is most commonly used, and other properties, which can be referenced in the following data type description) Delete field: ALTER TABLE [table name] Drop field name Modify the size of the text Type field: ALTER TABLE [table name] ALTER field name varchar (N) Delete table: Drop tables [table name]
SQL Add Field