summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas G. Lockhart1998-02-11 03:51:38 +0000
committerThomas G. Lockhart1998-02-11 03:51:38 +0000
commit81272eda077067ababcdd3ef601d5d51808108cb (patch)
treeb46c86e4270117cf16486ca421830527bc8e17b3
parentdf8c703c99e27d9ede82eafb0104a7c1d8cb267c (diff)
Fix typos in SQL statement terminators.
-rw-r--r--src/tutorial/funcs.source24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/tutorial/funcs.source b/src/tutorial/funcs.source
index 6baaad1b3a..75a9635167 100644
--- a/src/tutorial/funcs.source
+++ b/src/tutorial/funcs.source
@@ -55,10 +55,10 @@ CREATE TABLE EMP (
dept char16
);
-INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy')
-INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe')
-INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy')
-INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe')
+INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy');
+INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe');
+INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy');
+INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe');
INSERT INTO EMP VALUES ('Ginger', 4800, 30, 'candy');
-- the argument of a function can also be a tuple. For instance,
@@ -107,7 +107,7 @@ SELECT name(high_pay()) AS overpaid;
SELECT * FROM EMP;
CREATE FUNCTION clean_EMP () RETURNS int4
- AS 'DELETE FROM EMP WHERE EMP.salary <= 0
+ AS 'DELETE FROM EMP WHERE EMP.salary <= 0\;
SELECT 1 AS ignore_this'
LANGUAGE 'sql';
@@ -146,13 +146,13 @@ WHERE name = 'Bill' or name = 'Sam';
-- remove functions that were created in this file
-DROP FUNCTION c_overpaid(EMP, int4)
-DROP FUNCTION copytext(text)
-DROP FUNCTION concat16(char16,char16)
-DROP FUNCTION add_one(int4)
-DROP FUNCTION clean_EMP()
-DROP FUNCTION new_emp()
-DROP FUNCTION add_em(int4, int4)
+DROP FUNCTION c_overpaid(EMP, int4);
+DROP FUNCTION copytext(text);
+DROP FUNCTION concat16(char16,char16);
+DROP FUNCTION add_one(int4);
+DROP FUNCTION clean_EMP();
+DROP FUNCTION new_emp();
+DROP FUNCTION add_em(int4, int4);
DROP FUNCTION one();
DROP TABLE EMP;