?
Solved

Stored procedure and function

Posted on 2004-04-28
3
Medium Priority
?
148 Views
Last Modified: 2010-03-31
Whats the difference between a 1.Stored procedure and Function
2.String and StringBuffer.
   Is StringBuffer synchronised
3.why we use Triggers?Why can,t we check the condition in the client side itself instead of using triggers?
0
Comment
Question by:jimmyjacob
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 500 total points
ID: 10942285
>> 1.Stored procedure and Function
Compare to the similar concepts in e.g. Pascal. A procedure doesn't have to have a return value, and function must.

>> 2.String and StringBuffer.
A String is immutable, i.e. you can't change the value of the String inside. Whenever you do e.g. substring on a String, a new String object is created and returned to you.
A StringBuffer is mutable, so when building strings up from parts, you would want to use a StringBuffer.
StringBuffer is synchronized.

>> 3.why we use Triggers?Why can,t we check the condition in the client side itself instead of using triggers?
It is better (more efficient) to respond to events rather than poll for value changes. A trigger will send an event when a certain condition is met.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses
Course of the Month8 days, 14 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question