Create a database default to specify a value to insert in a column (or in all columns of a user-defined datatype) if no value is explicitly supplied at insert time.
Before you create a default, be sure the data server for which you are creating a default is running and that you created and established a connection to the data server.
Field | Description |
---|---|
Owner | Select an owner. |
Name | Specify a name for the default. |
Default Expression | Enter the default constant expression. The expression cannot include the names of any columns or other database objects. It can include global variables and built-in functions that do not reference database objects. Enclose character and date constants in quotes and use a "0x" prefix for binary constants. For example, to assign the current date to a default named todays_date, enter getdate() as the default expression. |
Preview | DDL for creating the default. |
Field | Description |
---|---|
Generate Script | Generate DDL for the default. |
Enter or Select the Parent Folder | Specify an existing project or create a new project in which to save the DDL. |
File Name | Enter the name of the file in which to store the DDL. |
Execute Immediately | Execute the DDL immediately. If you do not select this option, you must complete execution of the DDL later to create the default. |
Open in Editor After Creation | Create the default, and then open it in the Default Editor. |
For product-related issues, contact Sybase Technical Support at 1-800-8SYBASE. Send your feedback on this help topic directly to Sybase Technical Publications: pubs@sybase.com