Create table and insert syntax (PIONT type data into ST_Geometry column):
CREATE TABLE customers(pkey integer, cust_name VARCHAR(10),cust_zipcode VARCHAR(5) , loc ST_Geometry);
INSERT INTO customers(0, 'Fred Smith', '91234', new ST_Geometry('POINT(20.34 80.78)'));
INSERT INTO customers(1, 'Richard Connor', '95421', new ST_Geometry('POINT(20.56 89.44)'));
INSERT INTO customers(2, 'Anita Johnson', '98523', new ST_Geometry('POINT(19.12 88.22)'));
INSERT INTO customers(3, 'Mary Willow', '90642', new ST_Geometry('POINT(21.45 88.12)'));
Figure 4 shows create table and insert syntax (PIONT type data into ST_Geometry column).
Figure 4: Create Table and Insert Syntax USING BTEQ ExampleFigure 5 shows the retrieved data table.
Figure 5: Retrieved Data Table Using BTEQ Example