SQL adds and modifies the type of table field columns.
SQL addition/modification of table field column types
For example:
Modify (the column name must have the column keyword before it)
Alter table [USER] ALTER column [NAME] varchar (35) null
New
Alter table [USER] ADD [PRICE] numeric (18, 8) null default 0
You can change the table definition by changing, adding, removing columns and constraints, or enabling or disabling constraints and triggers.
Syntax
Alter table table
{[Alter column column_name
{New_data_type [(precision [, scale])]
[COLLATE <collation_name>]
[NULL | not null]
| {ADD | DROP} ROWGUIDCOL}
]
| ADD
{[<Column_definition>]
| Column_name AS computed_column_expression
} [,... N]
| [With check | with nocheck] ADD
{<Table_constraint>} [,... n]
| DROP
{[CONSTRAINT] constraint_name
| COLUMN column} [,... n]
| {CHECK | NOCHECK} CONSTRAINT
{ALL | constraint_name [,... n]}
| {ENABLE | DISABLE} TRIGGER
{ALL | trigger_name [,... n]}
}
<Column_definition >::=
{Column_name data_type}
[[DEFAULT constant_expression] [with values]
| [IDENTITY [(seed, increment) [not for replication]
]
[ROWGUIDCOL]
[COLLATE <collation_name>]
[<Column_constraint>] [... n]
<Column_constraint >:: =
[CONSTRAINT constraint_name]
{[NULL | not null]
| [{Primary key | UNIQUE}
[CLUSTERED | NONCLUSTERED]
[With fillfactor = fillfactor]
[ON {filegroup | DEFAULT}]
]
| [[Foreign key]
REFERENCES ref_table [(ref_column)]
[On delete {CASCADE | no action}]
[On update {CASCADE | no action}]
[Not for replication]
]
| CHECK [not for replication]
(Logical_expression)
}
<Table_constraint >:: =
[CONSTRAINT constraint_name]
{[{Primary key | UNIQUE}
[CLUSTERED | NONCLUSTERED]
{(Column [,... n])}
[With fillfactor = fillfactor]
[ON {filegroup | DEFAULT}]
]
| FOREIGN KEY
[(Column [,... n])]
REFERENCES ref_table [(ref_column [,... n])]
[On delete {CASCADE | no action}]
[On update {CASCADE | no action}]
[Not for replication]
| DEFAULT constant_expression
[FOR column] [with values]
| CHECK [not for replication]
(Search_conditions)
}
Parameters
Table
Is the name of the table to be changed. If the table is not in the current database or is not owned by the current user, you can explicitly specify the database and owner.
ALTER COLUMN
Specifies the columns to be modified. If the compatibility level is 65 or less than 65, alter column is not allowed.
The column to be changed cannot be:
Columns whose data type is text, image, ntext, or timestamp.
The ROWGUIDCOL column of the table.
Calculate a column or a column used to calculate a column.
The column to be copied.
Used in an index. Unless the Data Type of this column is varchar, nvarchar, or varbinary, the data type is not changed, and the size of the new column is equal to or greater than the size of the old column.
Columns used in the STATISTICS created by the create statistics statement. Use the drop statistics statement to delete STATISTICS. The statistics automatically generated by the query optimizer are automatically removed by alter column.
Columns used in the primary key or [foreign key] REFERENCES constraint.
Columns used in CHECK or UNIQUE constraints, unless the length of variable-length columns used in CHECK or UNIQUE constraints can be changed.
Columns with associated default values, unless the length, precision, or decimal places of the column can be changed without changing the data type.
Column_name
Is the name of the column to be modified, added, or removed. For new columns, if the data type is timestamp, column_name can be omitted. For columns of the timestamp data type, if column_name is not specified, the timestamp name is used.
New_data_type
Is the new data type of the column to be changed. The new_data_type of the column to be modified must comply with the following guidelines:
The original data type must be implicitly converted to the new data type.
The new_data_type cannot be timestamp.
For alter column, the default value of ANSI null is always open. If it is not specified, the COLUMN can be empty.
For alter column, ANSI fill is always enabled.
If the column to be changed is an ID column, new_data_type must be a data type that supports the ID attribute.
The current settings of set arithabort are ignored. The alter table statement acts as if the ARITHABORT option is ON.
Precision
Is the precision of the specified data type.
Scale
Is the number of decimal places of the specified data type. For more information about valid decimal places,
COLLATE <collation_name>
Specify a new sorting rule for changing columns. The sorting rule name can be either a Windows sorting rule name or an SQL sorting rule name.
The COLLATE clause can only be used to change the sorting rules for columns whose data types are char, varchar, text, nchar, nvarchar, and ntext. If not specified, this column uses the default database sorting rule.
If the following conditions are met, alter column cannot change the sorting rule:
Check the constraints, foreign key constraints, or calculation column references to change columns.
An index, statistics, or full-text index is created on this column. When you change a column's sorting rule, the statistics automatically created on the column are excluded.
The SCHEMABOUND view or function references this column.
NULL | NOT NULL
Specifies whether the column accepts null values. Columns with null values are not allowed to be added to the TABLE using the alter table statement only when the default value is specified. New columns added to a table must either allow null values or specify the default value.
If the new column allows a null value and no default value is specified, each row of the new column contains a null value. If the new column allows null VALUES and the default VALUES of the new column are specified, you can use the with values option to store the default VALUES in the new columns of all existing rows in the table.
If the new column does not allow null values, the new column must have the DEFAULT definition, and the DEFAULT value is automatically loaded in all existing rows of the new column.
You can specify NULL in the alter column statement to allow NULL values in the not null column, except for columns in the primary key constraint. Not null can be specified in alter column only when the COLUMN does NOT contain NULL values. The alter column not null statement can be executed only after the NULL value is updated to a non-NULL value. For example:
UPDATE MyTable SET NullCol = n' some _ value' WHERE NullCol is nullalter table MyTable alter column NullCOl NVARCHAR (20) NOT NULL
If NULL or not null is specified in alter column, new_data_type [(precision [, scale])] must be specified at the same time. If you do not change the data type, precision, or decimal places, specify the current value of these values in the column.
[{ADD | DROP} ROWGUIDCOL]
Specifies to add or remove the ROWGUIDCOL attribute on the specified column. ROWGUIDCOL is a keyword that indicates that a column is a globally unique identifier column of a row. Only one uniqueidentifier column can be assigned to each table as the ROWGUIDCOL column. The ROWGUIDCOL attribute can only be assigned to the uniqueidentifier column.
The ROWGUIDCOL attribute does not force the uniqueness of the values stored in the column. This attribute does not automatically generate values for new rows inserted into the table. To generate a unique value for each column, use the NEWID function in the INSERT statement or specify the NEWID function as the default value of the column.
ADD
Specify one or more column definitions, calculation column definitions, or table constraints to be added.
Computed_column_expression
Is an expression that defines the value of a calculated column. A Calculated column is a virtual column that is not physically stored in a table. It is calculated using an expression. This expression uses other columns in the same table. For example, the calculation column can be defined AS cost AS price * qty. The expression can be a non-computed column name, constant, function, or variable, or any combination of the above elements connected using one or more operators. The expression cannot be a subquery.
A computed column can be used to select a list, WHERE clause, order by clause, or any other location WHERE regular expressions can be used, except in the following cases:
The calculation Column cannot be used as the DEFAULT or foreign key constraint definition, or together with the not null constraint definition. However, if a computed column is defined by a deterministic expression and the Data Type of the calculation result is allowed in the index column, the column can be used as the key column in the index, or used as part of the primary key or UNIQUE constraint.
For example, if the table contains integer columns a and B, indexes can be created on the calculated column a + B, but not on the calculated column a + DATEPART (dd, GETDATE, this value will be changed later.
The calculation Column cannot be the target of the INSERT or UPDATE statement.
This indicates that the rows in the columns used for calculation in the table may have different values, so each row of the calculation column may have different values.
N
Is a placeholder that indicates that the previous item can be repeated n times.
With check | WITH NOCHECK
Specifies whether the data in the table is verified with the newly added or re-enabled foreign key or CHECK constraints. If it is not specified, it is assumed that the new constraint is with check, and the re-enable constraint is assumed to be with nocheck.
The with check and with nocheck clauses cannot be used for the primary key and UNIQUE constraints.
If you do not want to use the new CHECK or foreign key constraints to verify the existing data, use with nocheck. This is not recommended except for some cases. The new constraint will take effect in all future updates. Any violation of the constraint that is restrained by with nocheck when a constraint is added may cause future update failures if the rows to be updated by these update operations contain data that does not meet the constraints.
The query optimizer does not consider constraints defined by with nocheck. These constraints are ignored until they are re-enabled using the alter table table check constraint all statement.
DROP {[CONSTRAINT] constraint_name | COLUMN column_name}
Delete constraint_name or column_name from the table. If the compatibility level is less than or equal to 65, drop column is not allowed. Multiple columns or constraints can be listed. The following Columns cannot be removed:
The column to be copied.
Columns used in the index.
Columns used in the CHECK, foreign key, UNIQUE, or primary key constraints.
Columns with associated DEFAULT values (defined by the DEFAULT keyword) or columns bound to the DEFAULT object.
The column bound to the rule.
{CHECK | NOCHECK} CONSTRAINT
Enable or disable constraint_name. If disabled, this constraint is not used for validation when this column is inserted or updated in the future. This option can only be used with the foreign key and CHECK constraints.
ALL
Disable all constraints by using the NOCHECK option or use the CHECK option to enable all constraints.
{ENABLE | DISABLE} TRIGGER
Enable or disable trigger_name. When a trigger is disabled, its table definition still exists. However, when an INSERT, UPDATE, or DELETE statement is executed on the table, operations in the trigger are not executed unless the trigger is re-enabled.
ALL
Enable or disable all triggers in the table.
Trigger_name
Name of the trigger to be enabled or disabled.
Column_name data_type
The data type of the new column. Data_type can be any Microsoft®SQL Server™Data Type or user-defined data type.
DEFAULT
Is the keyword of the default value of the specified column. The DEFAULT definition can be used to provide values for new columns of existing rows in the table. The DEFAULT definition cannot be added to columns with timestamp data type, IDENTITY attribute, existing DEFAULT definition, or DEFAULT value bound. If the column already has a default value, you must remove the old default value before you can add a new default value. To maintain compatibility with earlier versions of SQL Server, it is possible to assign the constraint name to DEFAULT.
IDENTITY
The new column is the ID column. When a new row is added to a table, SQL Server provides a unique increment value for the column. The ID column is usually used together with the primary key constraint as the unique row identifier of the table. The IDENTITY attribute can be assigned to tinyint, smallint, int, bigint, decimal (p, 0), or numeric (p, 0) columns. Only one ID column can be created for each table. The DEFAULT keyword and the DEFAULT value cannot be used to identify a column. Either specify both the seed and increment, or do not specify either. If neither of them is specified, the default value is (1, 1 ).
Seed
Is the value of the first row loaded in the table.
Increment
Is the increment value of the ID value added to the previous line.
NOT FOR REPLICATION
Specifies that the IDENTITY attribute is not mandatory when data is inserted to a table by a replication login (such as sqlrepl. You can also specify not for replication for the constraint. When you copy and log on to insert data to the table, the constraints are not checked.
CONSTRAINT
Specify the start of the primary key, UNIQUE, foreign key, or CHECK constraint, or specify the start of the DEFAULT definition.
Constrain_name
Is a new constraint. The name of the constraint must comply with the identifier rules, but its name cannot start #. If constraint_name is not provided, the name generated by the system is used as the constraint.
PRIMARY KEY
It is a constraint that forces entity integrity for a given column or multiple columns through a unique index. Only one primary key constraint can be created for each table.
UNIQUE
It is a constraint that provides entity integrity for a given column or multiple columns through a unique index.
CLUSTERED | NONCLUSTERED
Specify the primary key or UNIQUE constraint to create clustered or non-clustered indexes. The default primary key constraint is CLUSTERED; the default UNIQUE constraint is NONCLUSTERED.
If the TABLE already has clustering constraints or indexes, you cannot specify CLUSTERED in alter table. If the table already has clustering constraints or indexes, the primary key constraint defaults to NONCLUSTERED.
With fillfactor = fillfactor
Specify the full size of each index page when SQL Server stores index data. The value of fillfactor specified by the user ranges from 1 to 100. If not specified, the default value is 0. When an index is created, the smaller the fillfactor value, the more available space the new index entries can be added without having to allocate a new space.
ON {filegroup | DEFAULT}
Specifies the storage location of the index created for the constraint. If a filegroup is specified, the index is created in the file group. If DEFAULT is specified, the index is created in the DEFAULT file group. If ON is not specified, the index is created in the file group where the table is located. When a clustered index is added to the primary key or UNIQUE constraint, if ON is specified, the entire table is moved to the specified file group when the clustered index is created.
Here, DEFAULT is not a keyword. DEFAULT is the identifier of the DEFAULT file group, which must be defined by symbols, such as ON "DEFAULT" or ON [DEFAULT].
Foreign key... REFERENCES
It is a constraint that provides reference integrity for data in a column. The foreign key constraint requires that each value in the column exists in the specified column of the referenced table.
Ref_table
Is the table referenced by the foreign key constraint.
Ref_column
Is one or more columns referenced by the new foreign key constraint (placed in parentheses ).
On delete {CASCADE | no action}
Specifies the action to be taken when the modified row in the table has a reference relationship and the row referenced by the row is deleted from the parent table. The default value is no action.
If CASCADE is specified, the referenced row will be deleted from the parent table. If no action is specified, SQL Server generates an error and rolls back the row deletion operation in the parent table.
If the on delete instead of trigger already exists in the table, the on delete cascade operation cannot be defined.
For example, there is a reference relationship between the Orders table and the MERs table in the Northwind database. The foreign key of Orders. mermerid references the primary key of Customers. CustomerID.
If you execute the DELETE statement on a row of the MERs table and it is Orders. customerID specifies the on delete cascade operation, SQL Server checks whether one or more rows are related to the deleted rows in the Orders table. If there are related rows, the related rows in the Orders table will be deleted along with the referenced rows in the MERs table.
If no action is specified, if at least one row in the Orders table references the row to be deleted in the MERs table, SQL Server generates an error and rolls back the delete operation in the Customers table.
On update {CASCADE | no action}
Specifies the operation to be performed on the changed row when the modified row has a reference relationship and the row referenced by the row is updated in the parent table. The default value is no action.
If CASCADE is specified, the referenced row will be updated in the parent table when the referenced row is updated. If no action is specified, SQL Server generates an error and rolls back the row update operation in the parent table.
If the on delete instead of trigger already exists in the table, the on delete cascade operation cannot be defined.
For example, there is a reference relationship between the Orders table and the MERs table in the Northwind database. The foreign key of Orders. mermerid references the primary key of Customers. CustomerID.
If an UPDATE statement is executed on a row of the MERs table, and it is Orders. customerID specifies the on update cascade operation, SQL Server checks whether there are one or more rows related to the updated rows in the Orders table. If related rows exist, the related rows in the Orders table are updated with the referenced rows in the MERs table.
If no action is specified, if at least one row in the Orders table references the row to be updated in the MERs table, SQL Server raises an error and rolls back the update operation in the Customers table.
[ASC | DESC]
Specify the order of one or more columns added to the table constraints. The default value is ASC.
WITH VALUES
Specify to store the value given in DEFAULT constant_expression in the new column added to the existing row. With values can be used only when DEFAULT is specified in the ADD clause. If the column to be added allows null VALUES and with values is specified, the default value is stored in the new column of the existing row. If with values is not specified and the column allows null values, null values are stored in the new column of the existing row. If the new column does not allow null VALUES, the default VALUES are stored in the new column of the existing row regardless of whether or not with values is specified.
Column [,... n]
Is one or more columns used by the new constraint (placed in parentheses ).
Constant_expression
Is the literal value, NULL, or system function used as the default value of a column.
FOR column
Specifies the column associated with the table-level DEFAULT definition.
CHECK
It is a constraint that forces domain integrity by limiting possible values that can be entered into one or more columns.
Logical_expression
Is a logical expression used to return TRUE or FALSE for the CHECK constraint. The Logical_expression used for CHECK constraints cannot reference other tables, but can reference other columns in the same row in the same table.
Note
To add new data rows, use the INSERT statement. To DELETE a data row, use the DELETE or truncate table statement. To change the value in an existing row, use the UPDATE statement.
The changes specified by the alter table statement are implemented immediately. If these changes require modifying the rows in the TABLE, alter table updates these rows. Alter table gets the schema modification lock of the TABLE to ensure that the TABLE cannot be referenced (or even its metadata cannot be referenced) by other connections during the change ). Changes made to the table are recorded in the log and can be completely restored. Changes to all rows in a very large table. For example, removing one column or adding a not null column by default may take a long time to complete and generate a large number of log records. Like INSERT, UPDATE, or DELETE statements that affect a large number of rows, this type of alter table statements should also be used with caution.
If an execution plan that references the TABLE exists in the process cache, alter table marks the execution plans as re-compiled at the next execution.
If the alter table statement specifies to change the column values referenced by other tables, one of the following two events will occur based ON the operation specified by on update or on delete in the referenced TABLE.
If NO value is specified in the reference TABLE or no action is specified (default value), the alter table statement will roll back the operation to change the referenced column in the parent TABLE, in addition, SQL Server will cause an error.
If CASCADE is specified in the reference TABLE, changes to the parent TABLE caused by the alter table statement will be applied to the parent TABLE and its related tables.
The alter table statement that adds the SQL _variant column generates the following warning:
The total row size (xx) for table 'yy' exceeds the maximum number of bytes per row (8060). Rows that exceed the maximum number of bytes will not be added.
This warning is generated because SQL _variant has a maximum length of 8016 bytes. When the value of a SQL _variant column is close to the maximum length, it exceeds the maximum byte limit of the row length.
When an alter table statement is executed on a TABLE with a schema binding view, it is subject to the same limits as when a TABLE with a simple index is modified. Adding columns is allowed. However, you cannot delete or modify the columns in the tables that participate in the schema binding view. If the alter table statement requires you to change the columns used in the schema binding view, the change operation will fail and SQL Server will throw an error message.
Creating a schema binding view for a referenced table does not affect the addition or deletion of triggers on the base table.
When the constraints are removed, the indexes created as part of the constraints are also removed. The INDEX created using create index must be removed using the drop index statement. The dbcc dbreindex statement can be used to reconstruct the index part of the constraint definition. You do not need to remove the constraint before adding it again using alter table.
You must delete all column-based indexes and constraints before you can delete a column.
When adding constraints, all existing data must be verified for violation of the constraints. In case of violation, the alter table statement fails and an error is returned.
When a new primary key or UNIQUE constraint is added to an existing column, the data in the column must be UNIQUE. If a duplicate value exists, the alter table statement fails. When the primary key or UNIQUE constraint is added, the with nocheck option does not work.
Each primary key and UNIQUE constraint generates an index. The number of UNIQUE and primary key constraints cannot cause the number of non-clustered indexes on the table to be greater than 249, and the number of clustered indexes to be greater than 1.
If the data type of the column to be added is uniqueidentifier, The NEWID () function can be used as the default value to provide a unique identifier value for the new column of the existing row in the table.
In column definitions, SQL Server does not forcibly specify DEFAULT, IDENTITY, ROWGUIDCOL, or column constraints in a specific order.
The alter column clause of alter table does not bind or unbind any rules on the COLUMN. Sp_bindrule or sp_unbindrule must be used to bind or unbind rules respectively.
You can bind a rule to a user-defined data type. Then, create table automatically binds the rule to the column defined by the user-defined data type. When you use alter column to change the COLUMN data type, these rules are not unbound. The rules of the original user-defined data type are still bound to this column. After alter column changes the COLUMN data type, any sp_unbindrule that is subsequently executed to unbind a rule from the user-defined data type will not cause the rule to be unbound from columns that have changed the data type. If alter column changes the COLUMN data type to the user-defined data type bound to the rule, the rule bound to the new data type will not be bound to the COLUMN.
Permission
By default, the alter table permission is granted to the TABLE owner, sysadmin fixed server role members, db_owner, and db_ddladmin fixed database role members and cannot be transferred.
Example
A. Change the table to add A new column
The following example adds a column that allows null values and does not provide a value through the DEFAULT definition. The value in the new column of each row is NULL.
Create table doc_exa (column_a INT) goalter table doc_exa ADD column_ B VARCHAR (20) NULLGOEXEC sp_help doc_exagdrop TABLE doc_exaGO
B. Change the table to remove Columns
In the following example, modify the table to delete a column.
Create table doc_exb (column_a INT, column_ B VARCHAR (20) NULL) GOALTER TABLE doc_exb DROP COLUMN column_bGOEXEC sp_help doc_exbGODROP TABLE doc_exbGO
C. Change the table to add columns with Constraints
The following example adds a new column with the UNIQUE constraint to the table.
Create table doc_exc (column_a INT) goalter table doc_exc ADD column_ B VARCHAR (20) NULL CONSTRAINT exb_unique UNIQUEGOEXEC sp_help doc_excGODROP TABLE doc_excGO
D. Change the table to add unverified Constraints
The following example adds a constraint to an existing column in the table. This column contains a value that violates the constraints. Therefore, with nocheck is used to prevent validation constraints on existing rows and allow the addition of these constraints.
Create table doc_exd (column_a INT) goinsert into doc_exd VALUES (-1) goalter table doc_exd with nocheck add constraint exd_check CHECK (column_a> 1) GOEXEC sp_help doc_exdGODROP TABLE doc_exdGO
E. Change the table to add multiple columns with Constraints
The following example adds multiple new columns with constraints to the table. The first new column has the IDENTITY attribute. The ID column of each row in the table will have a new value in increments.
Create table doc_exe (column_a int constraint column_a_un UNIQUE) goalter table doc_exe ADD/* Add a primary key identity column. */column_ B int identityconstraint column_ B _pk PRIMARY KEY,/* Add a column referencing another column in the same table. */column_c int null constraint column_c_fk REFERENCES doc_exe (column_a),/* Add a column with a constraint to enforce that * // * nonnull data is in a valid phone number format. */column_d VARCHAR (16) null constraint column_d_chkCHECK (column_d is null or column_d LIKE "[0-9] [0-9] [0-9]-[0-9] [0-9] [0-9- 9] [0-9] "ORcolumn_d LIKE" ([0-9] [0-9] [0-9]) [0-9] [0-9] [0-9]-[0-9] [0-9] [0-9] [0-9] "), /* Add a nonnull column with a default. */column_e DECIMAL (3, 3) CONSTRAINT column_e_defaultDEFAULT. 081 GOEXEC sp_help doc_exeGODROP TABLE doc_exeGO
F. add columns with default values that can be empty.
In the following example, add a column that can be empty and has a DEFAULT definition, and use with values to provide VALUES for existing rows in the table. If with values is not used, the new column of each row has a NULL value.
Alter table MyTable ADD AddDate smalldatetime NULLCONSTRAINT AddDateDfltDEFAULT getdate () WITH VALUES
G. Disable and re-enable a constraint
In the following example, the constraint used to restrict acceptable salary data is disabled. Use with nocheck constraint with alter table to disable the CONSTRAINT and execute insert operations that normally cause violation of the CONSTRAINT. With check constraint re-enable this CONSTRAINT.
Create table cnst_example (id int not null, name VARCHAR (10) not null, salary money not null constraint salary_cap CHECK (salary <100000) -- Valid insertsINSERT INTO cnst_example VALUES (1, "Joe Brown", 65000) insert into cnst_example VALUES (2, "Mary Smith", 75000) -- This insert violates the constraint. insert into cnst_example VALUES (3, "Pat Jones", 105000) -- Disable the constraint and try again. alter table cnst_example nocheck constraint salary_capINSERT INTO cnst_example VALUES (3, "Pat Jones", 105000) -- Reenable the constraint and try another insert, will fail. alter table cnst_example check constraint salary_capINSERT INTO cnst_example VALUES (4, "Eric James", 110000)
H. Disable and re-enable the trigger
In the following example, the disable trigger option of alter table is used to DISABLE the TRIGGER, so that insert operations that normally violate the TRIGGER conditions can be executed. Next, use enable trigger to re-ENABLE the TRIGGER.
Create table trig_example (id INT, name VARCHAR (10), salary MONEY) go -- Create the trigger. create trigger trig1 ON trig_example FOR INSERTas IF (select count (*) from insertedwhere salary> 100000)> 0 BEGINprint "TRIG1 Error: you attempted to insert a salary> $100,000 "rollback transactionendgo -- Attempt an insert that violates the trigger. insert into trig_example VALUES (1, "Pat Smith", 100001) GO -- Disable the trigger. alter table trig_example disable trigger trig1GO -- Attempt an insert that wocould normally violate the triggerINSERT INTO trig_example VALUES (2, "Chuck Jones", 100001) GO -- Re-enable the trigger. alter table trig_example enable trigger trig1GO -- Attempt an insert that violates the trigger. insert into trig_example VALUES (3, "Mary Booth", 100001) GO