Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e22f82

Browse files
author
Thomas G. Lockhart
committed
Fix typos in SQL statement terminators.
1 parent1f4f6b2 commit9e22f82

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

‎src/tutorial/funcs.source‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
--
77
-- Copyright (c) 1994-5, Regents of the University of California
88
--
9-
-- $Id: funcs.source,v 1.1.1.1 1996/07/09 06:22:34 scrappy Exp $
9+
-- $Id: funcs.source,v 1.2 1998/02/11 03:51:38 thomas Exp $
1010
--
1111
---------------------------------------------------------------------------
1212

@@ -55,10 +55,10 @@ CREATE TABLE EMP (
5555
deptchar16
5656
);
5757

58-
INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy')
59-
INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe')
60-
INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy')
61-
INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe')
58+
INSERT INTO EMP VALUES ('Sam', 1200, 16, 'toy');
59+
INSERT INTO EMP VALUES ('Claire', 5000, 32, 'shoe');
60+
INSERT INTO EMP VALUES ('Andy', -1000, 2, 'candy');
61+
INSERT INTO EMP VALUES ('Bill', 4200, 36, 'shoe');
6262
INSERT INTO EMP VALUES ('Ginger', 4800, 30, 'candy');
6363

6464
-- the argument of a function can also be a tuple. For instance,
@@ -107,7 +107,7 @@ SELECT name(high_pay()) AS overpaid;
107107
SELECT * FROM EMP;
108108

109109
CREATE FUNCTION clean_EMP () RETURNS int4
110-
AS 'DELETE FROM EMP WHERE EMP.salary <= 0
110+
AS 'DELETE FROM EMP WHERE EMP.salary <= 0\;
111111
SELECT 1 AS ignore_this'
112112
LANGUAGE 'sql';
113113

@@ -146,13 +146,13 @@ WHERE name = 'Bill' or name = 'Sam';
146146

147147
-- remove functions that were created in this file
148148

149-
DROP FUNCTION c_overpaid(EMP, int4)
150-
DROP FUNCTION copytext(text)
151-
DROP FUNCTION concat16(char16,char16)
152-
DROP FUNCTION add_one(int4)
153-
DROP FUNCTION clean_EMP()
154-
DROP FUNCTION new_emp()
155-
DROP FUNCTION add_em(int4, int4)
149+
DROP FUNCTION c_overpaid(EMP, int4);
150+
DROP FUNCTION copytext(text);
151+
DROP FUNCTION concat16(char16,char16);
152+
DROP FUNCTION add_one(int4);
153+
DROP FUNCTION clean_EMP();
154+
DROP FUNCTION new_emp();
155+
DROP FUNCTION add_em(int4, int4);
156156
DROP FUNCTION one();
157157

158158
DROP TABLE EMP;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp