Data.DB.TCheckConstraint.CustomConstraint

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TCheckConstraint

Delphi

property CustomConstraint: string read FCustomConstraint write SetCustomConstraint;

C++

__property System::UnicodeString CustomConstraint = {read=FCustomConstraint, write=SetCustomConstraint};

Description

Contains the SQL text representation of a constraint defined on a record by an application.

Use CustomConstraint to store the SQL text that defines a check constraint defined by the application for a dataset component. Custom constraints are local to the application and do not get applied by the server when an application writes its changes to a database.

Note: Custom constraints are SQL expressions. Because of this, always use a period (.) as a floating-point separator. This may be inconsistent with international Windows settings.

See Also