annotate sqlpython/exampleSession.txt @ 210:78ddfa41e5c1

test almost fixed
author catherine@Elli.myhome.westell.com
date Wed, 24 Dec 2008 11:14:54 -0500
parents 6e69f866b702
children 52adb09094b3
rev   line source
189
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
1 SQL.No_Connection> connect testschema/testschema@orcl
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
2 testschema@orcl> CREATE TABLE play (
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
3 > title VARCHAR2(40) CONSTRAINT xpk_play PRIMARY KEY,
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
4 > author VARCHAR2(40));
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
5
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
6 Executed
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
7
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
8 testschema@orcl> INSERT INTO play VALUES ('Twelfth Night', 'Shakespeare');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
9
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
10 Executed (1 rows)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
11
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
12 testschema@orcl> INSERT INTO play VALUES ('The Tempest', 'Shakespeare');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
13
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
14 Executed (1 rows)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
15
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
16 testschema@orcl> INSERT INTO play VALUES ('Agamemnon', 'Aeschylus');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
17
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
18 Executed (1 rows)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
19
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
20 testschema@orcl> commit;
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
21
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
22 Executed
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
23
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
24 testschema@orcl> select
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
25 > *
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
26 > from
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
27 > play;
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
28
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
29 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
30 ------------- -----------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
31 Twelfth Night Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
32 The Tempest Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
33 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
34
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
35 3 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
36
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
37 testschema@orcl> ls
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
38
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
39 NAME
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
40 --------------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
41 INDEX/XPK_PLAY
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
42 TABLE/PLAY
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
43
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
44 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
45
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
46 testschema@orcl> ls table
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
47
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
48 NAME
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
49 ----------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
50 TABLE/PLAY
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
51
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
52 1 row selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
53
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
54 testschema@orcl> desc play
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
55 TABLE TESTSCHEMA.PLAY
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
56
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
57 COLUMN_NAME Null? DATA_TYPE
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
58 ----------- -------- ------------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
59 TITLE NOT NULL VARCHAR2(40)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
60 AUTHOR NULL VARCHAR2(40)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
61
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
62 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
63
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
64 testschema@orcl> COMMENT ON COLUMN play.author IS 'Primary author (if multiple)';
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
65
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
66 Executed
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
67
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
68 testschema@orcl> COMMENT ON TABLE play IS 'I like plays.';
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
69
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
70 Executed
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
71
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
72 testschema@orcl> comments play
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
73 TABLE TESTSCHEMA.PLAY: I like plays.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
74
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
75 COLUMN_NAME COMMENTS
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
76 ----------- ----------------------------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
77 TITLE None
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
78 AUTHOR Primary author (if multiple)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
79
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
80 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
81
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
82 testschema@orcl> cat play
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
83
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
84 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
85 ------------- -----------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
86 Twelfth Night Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
87 The Tempest Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
88 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
89
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
90 3 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
91
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
92 testschema@orcl> help terminators
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
93 ; standard Oracle format
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
94 \c CSV (with headings)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
95 \C CSV (no headings)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
96 \g list
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
97 \G aligned list
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
98 \h HTML table
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
99 \i INSERT statements
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
100 \s CSV (with headings)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
101 \S CSV (no headings)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
102 \t transposed
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
103 \x XML
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
104 \l line plot, with markers
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
105 \L scatter plot (no lines)
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
106 \b bar graph
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
107 \p pie chart
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
108 testschema@orcl> select * from play where author='Shakespeare'\c
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
109
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
110 TITLE,AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
111 "Twelfth Night","Shakespeare"
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
112 "The Tempest","Shakespeare"
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
113
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
114 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
115
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
116 testschema@orcl> select * from play where author='Shakespeare'\g
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
117
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
118
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
119
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
120 **** Row: 1
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
121 TITLE: Twelfth Night
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
122 AUTHOR: Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
123
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
124 **** Row: 2
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
125 TITLE: The Tempest
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
126 AUTHOR: Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
127
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
128
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
129 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
130
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
131 testschema@orcl> select * from play where author='Shakespeare'\h
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
132
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
133 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
134 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
135 <head>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
136 <title>play</title>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
137 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
138 </head>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
139 <body>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
140 <table id="play" summary="Result set from query on table play">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
141 <tr>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
142 <th id="header_title">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
143 title
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
144 </th><th id="header_author">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
145 author
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
146 </th>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
147 </tr>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
148 <tr>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
149 <td headers="header_title">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
150 Twelfth Night
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
151 </td><td headers="header_author">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
152 Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
153 </td>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
154 </tr><tr>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
155 <td headers="header_title">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
156 The Tempest
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
157 </td><td headers="header_author">
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
158 Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
159 </td>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
160 </tr>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
161 </table>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
162 </body>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
163 </html>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
164
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
165 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
166
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
167 testschema@orcl> select * from play\i
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
168
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
169
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
170 INSERT INTO play (TITLE, AUTHOR) VALUES ('Twelfth Night', 'Shakespeare');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
171 INSERT INTO play (TITLE, AUTHOR) VALUES ('The Tempest', 'Shakespeare');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
172 INSERT INTO play (TITLE, AUTHOR) VALUES ('Agamemnon', 'Aeschylus');
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
173
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
174 3 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
175
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
176 testschema@orcl> select * from play where author='Shakespeare'\t
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
177
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
178
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
179 COLUMN NAME ROW N.1 ROW N.2
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
180 ----------- ------------- -----------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
181 TITLE Twelfth Night The Tempest
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
182 AUTHOR Shakespeare Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
183
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
184 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
185
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
186 testschema@orcl> select * from play where author='Shakespeare'\x
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
187
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
188
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
189 <xml>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
190 <play_resultset>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
191 <play>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
192 <title>Twelfth Night</title>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
193 <author>Shakespeare</author>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
194 </play>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
195 <play>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
196 <title>The Tempest</title>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
197 <author>Shakespeare</author>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
198 </play>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
199 </play_resultset>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
200 </xml>
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
201
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
202 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
203
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
204 testschema@orcl> set
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
205 autobind: False
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
206 commit_on_exit: True
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
207 echo: False
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
208 maxfetch: 1000
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
209 maxtselctrows: 10
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
210 timeout: 30
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
211 testschema@orcl> print
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
212 testschema@orcl> set autobind on
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
213 autobind - was: False
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
214 now: True
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
215 testschema@orcl> select * from play where author like 'A%';
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
216
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
217 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
218 --------- ---------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
219 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
220
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
221 1 row selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
222
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
223 testschema@orcl> print
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
224 :1 = Agamemnon
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
225 :2 = Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
226 :title = Agamemnon
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
227 :author = Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
228 testschema@orcl> select * from play where title = :1;
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
229
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
230 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
231 --------- ---------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
232 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
233
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
234 1 row selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
235
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
236 testschema@orcl> select * from play where author = :author;
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
237
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
238 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
239 --------- ---------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
240 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
241
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
242 1 row selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
243
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
244 testschema@orcl> help grep
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
245 grep PATTERN TABLE - search for term in any of TABLE's fields
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
246 Usage: grep [options] arg
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
247
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
248 Options:
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
249 -h, --help show this help message and exit
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
250 -i, --ignore-case Case-insensitive search
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
251
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
252 testschema@orcl> grep -i EM play
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
253 play
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
254
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
255 TITLE AUTHOR
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
256 ----------- -----------
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
257 The Tempest Shakespeare
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
258 Agamemnon Aeschylus
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
259
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
260 2 rows selected.
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
261
201
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
262 testschema@orcl> -- \d command inspired by postgresql's psql
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
263 testschema@orcl> \dt
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
264
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
265 TABLE_NAME TYPE
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
266 ---------- -----
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
267 PLAY TABLE
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
268
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
269 1 row selected.
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
270
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
271 testschema@orcl> \di
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
272
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
273 INDEX_NAME INDEX_TYPE
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
274 ---------- ----------
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
275 XPK_PLAY NORMAL
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
276
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
277 1 row selected.
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
278
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
279 testschema@orcl> CREATE OR REPLACE VIEW review
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
280 > AS
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
281 > SELECT title, author, 'A masterpiece!' review
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
282 > FROM play;
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
283
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
284 Executed
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
285
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
286 testschema@orcl> \dv
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
287
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
288 VIEW_NAME TYPE
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
289 --------- ----
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
290 REVIEW VIEW
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
291
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
292 1 row selected.
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
293
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
294 testschema@orcl> cat review
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
295
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
296 TITLE AUTHOR REVIEW
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
297 ------------- ----------- --------------
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
298 Twelfth Night Shakespeare A masterpiece!
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
299 The Tempest Shakespeare A masterpiece!
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
300 Agamemnon Aeschylus A masterpiece!
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
301
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
302 3 rows selected.
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
303
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
304 testschema@orcl> drop view review;
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
305
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
306 Executed
6e69f866b702 tests for \dv
catherine@dellzilla
parents: 198
diff changeset
307
189
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
308 testschema@orcl> drop table play;
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
309
c5398d87498e cat bug
catherine@dellzilla
parents:
diff changeset
310 Executed
210
78ddfa41e5c1 test almost fixed
catherine@Elli.myhome.westell.com
parents: 201
diff changeset
311
78ddfa41e5c1 test almost fixed
catherine@Elli.myhome.westell.com
parents: 201
diff changeset
312 testschema@orcl> foo
78ddfa41e5c1 test almost fixed
catherine@Elli.myhome.westell.com
parents: 201
diff changeset
313
78ddfa41e5c1 test almost fixed
catherine@Elli.myhome.westell.com
parents: 201
diff changeset
314 bar