WATCOMSQL function [Miscellaneous]

Takes a Transact-SQL statement and rewrites it in the Watcom-SQL dialect. This can be useful when converting existing Adaptive Server Enterprise stored procedures into Watcom SQL syntax.

Syntax
WATCOMSQL( sql-statement-string )
Parameters
  • sql-statement-string   The SQL statement that the function uses to determine its dialect.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the string 'SELECT empl_name AS EmployeeName FROM Employees'.

SELECT WATCOMSQL( 'SELECT EmployeeName=empl_name FROM Employees' ) FROM dummy;