PostgreSQL/src/test/regress/sql/strings.sql
1997-12-01 02:48:47 +00:00

24 lines
412 B
SQL

--
-- Test various data entry syntaxes.
--
-- SQL92 string continuation syntax
SELECT 'first line'
' - next line'
' - third line'
AS "Three lines to one";
-- illegal string continuation syntax
SELECT 'first line'
' - next line' /* this comment is not allowed here */
' - third line';
--
-- test conversions between various string types
--
SELECT text(f1) FROM CHAR_TBL;
SELECT text(f1) FROM VARCHAR_TBL;