473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Space constant

2
Hi
Is it good practice to declare a space constant (' ') and use it in a procedure? Does it make the execution faster??? Why would you do something like that?
Feb 11 '08 #1
9 1591
amitpatel66
2,367 Expert 2GB
Please post your if any technical probelm in your source code for help from our experts.

Are you facing any problem by using a space constant in a procedure in your real time applications??
Feb 11 '08 #2
koos
2
Please post your if any technical probelm in your source code for help from our experts.

Are you facing any problem by using a space constant in a procedure in your real time applications??
No problem using it like this. I just want to know why you would do this.
Is it not the same to say. Does the constant make it quicker?

mySpace CONSTANT VARCHAR2(1) := ' ';
begin
select ....into x

exeption
no_data_found then
x:= ' ';

end;
Feb 11 '08 #3
debasisdas
8,127 Expert 4TB
Does it make the execution faster??? Why would you do something like that?
Constant makes the execution faster ?

There is nothing like that. Simply it is a variable whose value can't be changed during the execution of the program.
Feb 12 '08 #4
Please post your if any technical probelm in your source code for help from our experts.

Are you facing any problem by using a space constant in a procedure in your real time applications??

once you declared any one of the variables constant so its value becomes constant through out the programme or project. you can not change it again
so once you declared so once it is loaded in the memory.
Feb 12 '08 #5
No problem using it like this. I just want to know why you would do this.
Is it not the same to say. Does the constant make it quicker?

mySpace CONSTANT VARCHAR2(1) := ' ';
begin
select ....into x

exeption
no_data_found then
x:= ' ';

end;
in oracle ' ' is equal to null also. means you can assign value latter also if it is not constant.
Feb 12 '08 #6
debasisdas
8,127 Expert 4TB
in oracle ' ' is equal to null also. ...................
Who told you that ' ' = NULL

If you do not have the knowledge of the subject ,please do not post wrong answers here.
Feb 12 '08 #7
Who told you that ' ' = NULL

If you do not have the knowledge of the subject ,please do not post wrong answers here.

i mean to say blank space by mistake i said null;

you shoud talk politely. if it is your web site, you can ban me.
do not speak roughly. ok..
Feb 12 '08 #8
debasisdas
8,127 Expert 4TB
i mean to say blank space by mistake i said null;

you shoud talk politely. if it is your web site, you can ban me.
do not speak roughly. ok..
We spend our time to help others. There is no sence posting wrong answers here. I also don't claim to know everything. There are so many things i don't know. If there is any question and i don't know the answer, simply I don't reply to the thread or redirect to some helpful resource.
Feb 12 '08 #9
We spend our time to help others. There is no sence posting wrong answers here. I also don't claim to know everything. There are so many things i don't know. If there is any question and i don't know the answer, simply I don't reply to the thread or redirect to some helpful resource.

if someone sends the wrong answer, you should rectify it. but in a proper way.
dont use rash launguage. i am not an expert. sometimes we make mistake so we should rectify it in proper way. but answered me like you are an expert in oracle. and i made very big mistake. you can rectify me in proper way.
thank you
Feb 12 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Grant Edwards | last post by:
Is there any utility to convert Python sources from space-based block indentation to tab-based? You can use "expand" convert from tabs->spaces, but "unexpand" isn't bright enough to do the...
5
by: mark | last post by:
how to print, say 50 blank spaces, or say 20 blank spaces ? I wanted use such blank spaces that can be output in a program at predetermined places when printing with "cout".
27
by: Aurangzeb M. Agha | last post by:
I'm running Postgres 7.1.3, and just started having a problem where my dynamic site is going down (read-only DB, with no writes happening to the DB) regularly (every other day). I have no idea...
37
by: hasadh | last post by:
Hello, probably this may be a simple qn to u all but I need an answer plz. In my software i used macros like OK,TRUE,FALSE,FAILURE . A friend who included this code as a library into his module...
11
by: Eliot Coweye | last post by:
According to Einstein, objects of great mass affect timespace. Can a great mass of bits in a badly written C++ program affect timespace, making the harddisk were it is written on incredibly slow...
3
by: baibaichen | last post by:
hi i want to output strings with indent space, the code looks like: std::set<std::string> files; std::set<std::string> iterator b = files.begin(); std::set<std::string> iterator e =...
25
by: tsaar2003 | last post by:
Hi Pythonians, To begin with I'd like to apologize that I am not very experienced Python programmer so please forgive me if the following text does not make any sense. I have been missing...
1
by: yb | last post by:
Please try the example below In Internet Explorer, when the mouse hovers between the right side of the image and the left side of the text, the cursor changes (i.e. Internet explorer is adding a...
4
by: Peter Webb | last post by:
I am writing some visualisation code for 4 dimensional geometric shapes. This is to run in the C# .NET XNA environment, so I am cross posting a maths and C# group. My software runs just fine for...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...

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.