Returns the well-known text (WKT) representation of an ST_Geometry value.
Returns a CLOB value.
For details on WKT formats, see “Well-Known Text Representation” on page 194.
All ST_Geometry types.
CREATE TABLE sample_streets(
skey INTEGER,
streetName VARCHAR(40),
streetShape ST_GEOMETRY);
INSERT INTO sample_streets
VALUES(1, 'Main Street', 'LINESTRING(2 2, 3 2, 4 1)');
INSERT INTO sample_streets
VALUES(1, 'Coast Blvd', 'LINESTRING(12 12, 18 17)');
SELECT streetShape.ST_AsText()
FROM sample_streets
WHERE skey < 1001;