472,779 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 software developers and data experts.

simple question about sql*plus

Hello!
i am a newbie in oracle database. I have some question about SQL*PLUS

Currently, i have some table in an oracle database. When i open
SQL*PLUS and type my query: "select * from employee". It display for
me all the record in the database and then it also display how many
record has been selected.
but if i try to do this: "select * from customer" or select any table
it still display all the record in that table but it didn't display
the summary of how many record it has selected in that table. i would
like to enable that feature in all the table that i have. i wonder if
anyone have suggestion for me. thank you ahead for all the response
and suggestion. it helps me a lot. so please send me your suggestion.
all suggestion is appreciated. thank you very much. bye now.
Jul 19 '05 #1
3 3636
you want to use the 'SET FEEDBACK xx' SQL*Plus command ... the default is 6
or more rows

you can type this command at the SQL> prompt each time you log in, or put it
in a 'login.sql' file (you can set up a local or global login.sql -- check
out the docs at http://tahiti.oracle.com

"khangu" <ng******@seattleu.edu> wrote in message
news:b6**************************@posting.google.c om...
Hello!
i am a newbie in oracle database. I have some question about SQL*PLUS

Currently, i have some table in an oracle database. When i open
SQL*PLUS and type my query: "select * from employee". It display for
me all the record in the database and then it also display how many
record has been selected.
but if i try to do this: "select * from customer" or select any table
it still display all the record in that table but it didn't display
the summary of how many record it has selected in that table. i would
like to enable that feature in all the table that i have. i wonder if
anyone have suggestion for me. thank you ahead for all the response
and suggestion. it helps me a lot. so please send me your suggestion.
all suggestion is appreciated. thank you very much. bye now.


Jul 19 '05 #2
set feed on

set feed 6
will only show the resulting number if 6 or more rows are generated by your
query

set feed off
never tells you how many rows are returned
"khangu" <ng******@seattleu.edu> wrote in message
news:b6**************************@posting.google.c om...
Hello!
i am a newbie in oracle database. I have some question about SQL*PLUS

Currently, i have some table in an oracle database. When i open
SQL*PLUS and type my query: "select * from employee". It display for
me all the record in the database and then it also display how many
record has been selected.
but if i try to do this: "select * from customer" or select any table
it still display all the record in that table but it didn't display
the summary of how many record it has selected in that table. i would
like to enable that feature in all the table that i have. i wonder if
anyone have suggestion for me. thank you ahead for all the response
and suggestion. it helps me a lot. so please send me your suggestion.
all suggestion is appreciated. thank you very much. bye now.

Jul 19 '05 #3
ng******@seattleu.edu (khangu) wrote in message news:<b6**************************@posting.google. com>...
Hello!
i am a newbie in oracle database. I have some question about SQL*PLUS

Currently, i have some table in an oracle database. When i open
SQL*PLUS and type my query: "select * from employee". It display for
me all the record in the database and then it also display how many
record has been selected.
but if i try to do this: "select * from customer" or select any table
it still display all the record in that table but it didn't display
the summary of how many record it has selected in that table. i would
like to enable that feature in all the table that i have. i wonder if
anyone have suggestion for me. thank you ahead for all the response
and suggestion. it helps me a lot. so please send me your suggestion.
all suggestion is appreciated. thank you very much. bye now.

apps@DB01> select * from t;

A B
--------- ---------
19 20
19 20

apps@DB01> set feedback on;
apps@DB01> /

A B
--------- ---------
19 20
19 20

2 rows selected.

apps@DB01> set feedback off;
apps@DB01> /

A B
--------- ---------
19 20
19 20
apps@DB01>
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ruben Schoenefeld | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi - after I got sql*plus to work on my Linux box and I recompiled PHP 5 to include the oracle instant client, I run into a weird problem: I...
2
by: Ethel Aardvark | last post by:
I have a query which runs fine in SQL*Plus but which will not compile into a packaged procedure (claiming that the table can not be found): SELECT DISTINCT Folder_ID INTO l_RootID -- remove...
3
by: valexena | last post by:
In order to set SQL*PLUS session so that NLS_DATE_FORMAT information is altered in a specific way every time I log into Oracle which method would be used? -- Posted via http://dbforums.com
0
by: GP | last post by:
Consider the following: (extracted from a .bat) sqlplus toto/titi ^ @%pdl%\islqz033 ^ '1 ' ^ 'aaa' ^ ' ' ^ 'zzz' ^ ....
3
by: Peter | last post by:
Has anyone seen this before? I start SQL*Plus, and login by typing sqlplus Quantum/Password@BPrd I type: select '&1' from dual; it responds
1
by: Miori | last post by:
Dear all, Server machine running Oracle Database Server on Linux and a Client machine running Oracle Client on WIndows XP. HOw it is possible to shut down/start up the Oracle database on the...
2
by: Ant | last post by:
Hi, I have an SQL assignment to do and at my school we use SQL *Plus there however I don't have Oracle at home, where I would like to do the work ,so I was wondering whats the easiest way to get...
9
by: skyloon | last post by:
I've did a program using vb6 to connect to oracle9i, i can establish the connection, the problem is when i execute the query in oracle sql*plus, it can execute successfully, but when run in vb...
3
by: khangu | last post by:
Hello! i am a newbie in oracle database. I have some question about SQL*PLUS Currently, i have some table in an oracle database. When i open SQL*PLUS and type my query: "select * from employee"....
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.