473,662 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3692
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******@seatt leu.edu> wrote in message
news:b6******** *************** ***@posting.goo gle.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.


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******@seatt leu.edu> wrote in message
news:b6******** *************** ***@posting.goo gle.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.

Jul 19 '05 #3
ng******@seattl eu.edu (khangu) wrote in message news:<b6******* *************** ****@posting.go ogle.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
3817
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 get 'ORA-01017: invalid username/password; logon denied' when using the same combination of username/password and Oracle instance that works in sql*plus on
2
4959
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 this line in SQL*Plus context FROM ifssys.ifs_folder_items WHERE Folder_Name = 'Root Folder' AND TYPE = 'FOLDER'; -> PL/SQL: ORA-00942: table or view does not exist
3
15045
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
2020
by: GP | last post by:
Consider the following: (extracted from a .bat) sqlplus toto/titi ^ @%pdl%\islqz033 ^ '1 ' ^ 'aaa' ^ ' ' ^ 'zzz' ^ ....
3
20061
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
4313
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 server from SQL*Plus of the client. I know it can be done from SQL*Plus of the server but the point is that I want to do it from SQL*Plus of the Client. Many many thnx for any tips, Miori
2
4128
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 an SQL environment up so I can code in that then just paste it into SQL *Plus later. I don't really want to install Oracle on my home pc and I was wondering if there are other IDE's for SQl that would fit my need for this.
9
2505
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 application, the records affected return 0, it do nothing for this query, any setting need to be done? because this query insert and select to/from different database, i've created a database link for these 2 database, everything work find in oracle...
3
212
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". 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...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8762
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.